# # BugZilla query page scanner to work with ancient # Debian Stable bugzilla installationss # # This includes three test sites # site contains one bug entry # all_bugs contains all Openmoko bugs as of \today # no_bug is a query which showed no bug # from HTMLParser import HTMLParser class BugQueryExtractor(HTMLParser): STATE_NONE = 0 STATE_FOUND_TR = 1 STATE_FOUND_NUMBER = 2 STATE_FOUND_PRIO = 3 STATE_FOUND_PRIO2 = 4 STATE_FOUND_NAME = 5 STATE_FOUND_PLATFORM = 6 STATE_FOUND_STATUS = 7 STATE_FOUND_WHATEVER = 8 # I don't know this field STATE_FOUND_DESCRIPTION =9 def __init__(self): HTMLParser.__init__(self) self.state = self.STATE_NONE self.bug = None self.bugs = [] def handle_starttag(self, tag, attr): if self.state == self.STATE_NONE and tag.lower() == "tr": # check for bz_normal and bz_P2 as indicator in buglist.cgi # use 'all' and 'map' on python2.5 if len(attr) == 1 and attr[0][0] == 'class' and \ ('bz_normal' in attr[0][1] or 'bz_blocker' in attr[0][1] or 'bz_enhancement' in attr[0][1] or 'bz_major' in attr[0][1] or 'bz_minor' in attr[0][1] or 'bz_trivial' in attr[0][1] or 'bz_critical' in attr[0][1] or 'bz_wishlist' in attr[0][1]) \ and 'bz_P' in attr[0][1]: print "Found tr %s %s" % (tag, attr) self.state = self.STATE_FOUND_TR elif self.state == self.STATE_FOUND_TR and tag.lower() == "td": self.state += 1 def handle_endtag(self, tag): if tag.lower() == "tr": print "Going back" if self.state != self.STATE_NONE: self.bugs.append( (self.bug,self.status) ) self.state = self.STATE_NONE self.bug = None if self.state > 1 and tag.lower() == "td": print "Next TD" self.state += 1 def handle_data(self,data): data = data.strip() # skip garbage if len(data) == 0: return if self.state == self.STATE_FOUND_NUMBER: """ #1995 in bugs.oe.org has [SEC] additionally to the number and we want to ignore it """ print "Bug Number '%s'" % data.strip() if self.bug: print "Ignoring bug data" return self.bug = data elif self.state == self.STATE_FOUND_STATUS: print "Status Name '%s'" % data.strip() self.status = data def result(self): print "Found bugs" return self.bugs # bugs_openmoko = """ Bug List
Bug List
Fri Mar 16 20:51:52 CET 2007
It was a time of great struggle and heroic deeds

282 bugs found.
ID Sev Pri Plt Owner State Result Summary
1 cri P2 Neo laforge@openmoko.org CLOS FIXE kernel is running way too slow
2 nor P2 Neo laforge@openmoko.org RESO FIXE SD card driver unstable
3 nor P2 Neo sean_chiang@fic.com.tw CLOS FIXE Debug Board trying to control GSM_EN / FA_19
4 nor P2 Neo laforge@openmoko.org RESO FIXE random crashes of gsmd
5 nor P2 Neo laforge@openmoko.org RESO FIXE call progress information is lacking
6 nor P2 Neo sean_chiang@fic.com.tw NEW GSM_EN should be called nGSM_EN
7 nor P2 Neo laforge@openmoko.org CLOS FIXE PMU RTC driver date/time conversion is erroneous
8 cri P5 Neo laforge@openmoko.org RESO FIXE SD/MMC: Card sometimes not detected
9 nor P2 Neo laforge@openmoko.org ASSI Boot speed too low (kernel part)
10 enh P2 Neo laforge@openmoko.org CLOS FIXE u-boot support for usb-serial lacking
11 blo P2 Neo ken_zhao@fic-sh.com.cn RESO FIXE u-boot lacks USB DFU support
12 nor P2 Neo gordon_hsu@fic-sh.com.cn NEW Boot speed too low (bootloader part)
13 nor P2 Neo teddy@fic-sh.com.cn RESO FIXE power button should not immediately react
14 min P2 Neo werner@openmoko.org RESO FIXE bootloader should display startup image before booting th...
15 nor P2 Neo laforge@openmoko.org NEW kernel oops when unloading g_ether
16 blo P2 Neo sean_chiang@fic.com.tw RESO FIXE bluetooth pullup / pulldown resistors
17 nor P2 Neo sean_chiang@fic.com.tw RESO FIXE microSD socket still has mechanical contact problems
18 nor P2 Neo mickey@vanille-media.de RESO FIXE OE build of u_boot with CVSDATE 20061030 uses latest git ...
19 min P2 Neo teddy@fic-sh.com.cn RESO FIXE "reboot" doesn't work
20 cri P2 Neo laforge@openmoko.org RESO FIXE connection status
21 blo P3 Neo sean_chiang@fic.com.tw NEW sms function missing
22 nor P2 Neo laforge@openmoko.org RESO FIXE outgoing call generates 'segmentation fault' when the pee...
23 nor P2 Neo laforge@openmoko.org RESO FIXE dtmf support not available now
24 wis P2 Neo laforge@openmoko.org NEW libgsmd/misc.h: lgsm_get_signal_quality()
25 nor P2 Neo davewu01@seed.net.tw ASSI GtkSpinBox unfinished
26 nor P2 Neo ken_zhao@fic-sh.com.cn NEW Pixmap Engine and Shadows
27 nor P2 Neo ken_zhao@fic-sh.com.cn ASSI Labels on GtkButton don't appear centered
28 nor P2 Neo ken_zhao@fic-sh.com.cn NEW GtkComboBox styling woes
29 nor P2 Neo ken_zhao@fic-sh.com.cn RESO FIXE GtkProgressBar styling woes
30 nor P2 Neo mickey@vanille-media.de REOP Touchscreen emits bogus events under X
31 cri P2 Neo laforge@openmoko.org NEW Display colors are slightly off
32 enh P2 Neo mickey@vanille-media.de NEW Common function for loading GdkPixbuf
33 blo P2 Neo laforge@openmoko.org RESO FIXE incoming call status report causes gsmd to crash.
34 blo P2 Neo laforge@openmoko.org RESO WORK Need to decide if lgsm_handle is still valid.
35 enh P5 Neo laforge@openmoko.org RESO WONT Support debug board from u-boot
36 blo P2 Neo laforge@openmoko.org RESO FIXE Implement s3c2410 udc (usb device controller) driver in u...
37 blo P2 Neo laforge@openmoko.org RESO DUPL Implement USB Device Firmware Upgrade (DFU)
38 enh P2 Neo laforge@openmoko.org RESO DUPL implement USB serial emulation in u-boot
39 maj P2 Neo gordon_hsu@fic-sh.com.cn RESO FIXE Move LCM initialization into u-boot (currently in kernel ...
40 nor P2 Neo werner@openmoko.org RESO DUPL test + debug display of image on LCM in u-boot
41 enh P2 Neo ken_zhao@fic-sh.com.cn NEW evaluate sapwood theme engine
42 blo P3 Neo laforge@openmoko.org RESO FIXE dynamic mtd partition table cration
43 maj P2 All mickey@vanille-media.de NEW StatusBar (Footer) API
44 wis P2 All mickey@vanille-media.de NEW InputMethod API
45 nor P2 All mickey@vanille-media.de NEW Automatic opening input methods
46 maj P2 Neo laforge@openmoko.org RESO FIXE 266MHz initialization of GTA01Bv2
47 min P2 Neo ken_zhao@fic-sh.com.cn RESO DUPL Evaluate sapwood theming engine
48 maj P2 Neo laforge@openmoko.org RESO DUPL Only power up the phone in case power button was pressed ...
49 min P2 All mickey@vanille-media.de NEW Implement touchscreen & click daemon
50 nor P2 All mickey@vanille-media.de NEW Sound Event API
51 nor P2 Neo mickey@vanille-media.de NEW Preferences API
52 nor P2 Neo cj_steven@fic-sh.com.cn RESO FIXE Single Instance Startup
53 nor P2 All tonyguan@fic-sh.com.cn RESO FIXE DTMF tones during call
54 blo P1 All tonyguan@fic-sh.com.cn RESO FIXE PIN Entry
55 maj P2 All tonyguan@fic-sh.com.cn RESO FIXE Don't pop up the dialer interface initially
56 blo P4 All tonyguan@fic-sh.com.cn RESO FIXE Integrate with contacts database
57 min P2 All tonyguan@fic-sh.com.cn RESO LATE Recording Calls
58 nor P2 Neo mickey@vanille-media.de NEW API for devmand
59 enh P2 Neo ken_zhao@fic-sh.com.cn NEW Real DPI vs. Fake DPI
60 min P2 Neo ken_zhao@fic-sh.com.cn NEW fontconfig antialiasing
61 maj P2 Neo ken_zhao@fic-sh.com.cn NEW Theme is very slow
62 wis P2 All mickey@vanille-media.de NEW High Level Multi Layer Network Discovery API
63 enh P2 Neo mickey@vanille-media.de ASSI matchbox-panel 1 vs. 2
64 maj P2 Neo mickey@vanille-media.de NEW Show Cipher Status in GSM-Panel applet
65 maj P2 Neo mickey@vanille-media.de NEW Visual indication for SMS overflow
66 cri P2 Neo mickey@vanille-media.de NEW Applet for Missed Events
67 nor P2 All mickey@vanille-media.de RESO WONT libmokopim not necessary
68 nor P2 Neo laforge@openmoko.org NEW SIM backend for EDS
69 maj P2 All buglog@lists.openmoko.org NEW Speed up System Initialization
70 nor P2 Neo buglog@lists.openmoko.org NEW Minimize Services started on Bootup
71 enh P2 Neo gordon_hsu@fic-sh.com.cn RESO FIXE make a short vibration pulse once u-boot is starting
72 wis P2 Neo gordon_hsu@fic-sh.com.cn RESO FIXE Add on-screen boot menu
73 blo P2 Neo laforge@openmoko.org RESO FIXE test and verify battery charger control (pcf50606)
74 blo P1 Neo laforge@openmoko.org RESO WONT stub audio driver to power up amp and route audio through...
75 maj P2 Neo laforge@openmoko.org RESO FIXE PWM code for display brightness control
76 enh P2 Neo teddy@fic-sh.com.cn NEW Implement PWM control for vibrator
77 nor P2 Neo songcw@fic-sh.com.cn NEW Finish, test and verify agpsd implementation
78 maj P2 Neo laforge@openmoko.org RESO FIXE Implement and test ASoC platform driver
79 blo P1 Neo werner@openmoko.org RESO FIXE suspend/resume to RAM support
80 maj P2 Neo laforge@openmoko.org RESO WONT Add sysfs entry for PMU wakeup reason
81 maj P2 Neo werner@openmoko.org NEW Decide how PMU RTC alarm interrupt is signalled to userspace
82 nor P2 Neo laforge@openmoko.org NEW implement and test cpufreq interface to S3C2410 PLL / SLO...
83 enh P2 Neo teddy@fic-sh.com.cn NEW evaluate process and I/O schedulers
84 nor P2 Neo laforge@openmoko.org RESO FIXE enable voluntary preemption
85 min P2 Neo laforge@openmoko.org RESO FIXE test NO_IDLE_HZ / tickless idle
86 nor P2 Neo laforge@openmoko.org RESO FIXE APM emulation for battery / charger / charging and possib...
87 nor P2 Neo laforge@openmoko.org RESO FIXE define and implement how headphone jack routing/signallin...
88 min P2 Neo teddy@fic-sh.com.cn NEW use and test PMU watchdog driver
89 cri P2 Neo teddy@fic-sh.com.cn NEW determine correct gamma calibration values and put them i...
90 cri P1 Neo laforge@openmoko.org NEW GSM TS07.10 multiplex missing
91 maj P2 Neo laforge@openmoko.org RESO DUPL debug sd card timeout problems
92 nor P2 Neo laforge@openmoko.org RESO FIXE test multiple microSD card vendors for compatibility with...
93 nor P2 Neo laforge@openmoko.org NEW test 4GB microSD card compatibility
94 maj P2 Neo tonyguan@fic-sh.com.cn RESO FIXE + symbol support
95 min P2 Neo sean_chiang@fic.com.tw NEW verify charger current and battery temperature reading co...
96 maj P2 Neo laforge@openmoko.org NEW make sure PMU alarm (set via rtc interface) is persistent
97 blo P2 Neo laforge@openmoko.org RESO FIXE remove static mtd partition table, use u-boot created dyn...
98 enh P2 Neo mickey@vanille-media.de NEW how to do touch panel calibration in factory and store va...
99 maj P2 All laforge@openmoko.org RESO DUPL Implement SMS support
100 maj P2 All laforge@openmoko.org NEW Implement Cell Broadcast support
ID Sev Pri Plt Owner State Result Summary
101 maj P2 Neo laforge@openmoko.org NEW Implement GPRS setup/teardown support
102 cri P2 Neo laforge@openmoko.org ASSI SIM phonebook access
103 blo P1 Neo laforge@openmoko.org RESO FIXE power-up/power-down GSM Modem
104 cri P2 All tonyguan@fic-sh.com.cn RESO LATE Volume control
105 enh P2 Neo laforge@openmoko.org RESO DUPL add passthrough mode
106 blo P2 Neo tonyguan@fic-sh.com.cn RESO LATE Emergency Call Support
107 maj P2 Neo laforge@openmoko.org NEW obtain list of operators / control operator selection
108 nor P2 Neo tonyguan@fic-sh.com.cn REOP allow query of manufacturer/model/revision/imei
109 enh P2 Neo laforge@openmoko.org NEW add dbus interface, like recent upstream gpsd
110 nor P2 Neo laforge@openmoko.org NEW look into gps / agps integration
111 nor P2 Neo laforge@openmoko.org NEW integrate agpsd in our system power management.
112 nor P2 Neo buglog@lists.openmoko.org NEW How to deliver kernel-level alarm to destination app
113 nor P2 Neo marcel@holtmann.org ASSI bluetooth headset support
114 nor P2 Neo buglog@lists.openmoko.org NEW Who is managing wakeup times?
115 enh P2 Neo marcel@holtmann.org ASSI A2DP / alsa integration
116 nor P2 Neo marcel@holtmann.org ASSI bluetooth HID support (host)
117 min P2 Neo marcel@holtmann.org ASSI bluetooth HID support (device)
118 nor P2 Neo marcel@holtmann.org ASSI bluetooth networking support
119 cri P3 All mickey@vanille-media.de NEW merge openmoko-taskmanager into openmoko-footer
120 nor P2 Neo marcel@holtmann.org ASSI bluetooth OBEX
121 cri P3 All mickey@vanille-media.de NEW merge openmoko-mainmenu into openmoko-mainmenu (panel)