Merge lp:~adeuring/launchpad/bug-438024-parse-dmi-data into lp:launchpad
Proposed by
Abel Deuring
Status: | Merged |
---|---|
Merged at revision: | not available |
Proposed branch: | lp:~adeuring/launchpad/bug-438024-parse-dmi-data |
Merge into: | lp:launchpad |
Diff against target: |
80 lines 2 files modified
lib/canonical/launchpad/scripts/hwdbsubmissions.py (+19/-0) lib/canonical/launchpad/scripts/tests/test_hwdb_submission_parser.py (+34/-0) |
To merge this branch: | bzr merge lp:~adeuring/launchpad/bug-438024-parse-dmi-data |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Eleanor Berger (community) | Approve | ||
Review via email: mp+12518@code.launchpad.net |
To post a comment you must log in.
This branch adds a method SubmissionParse r._parseDmi( ).
The HWDB client in Karmic will no longer submit data containing HAL data; instead it will send data from udev, some DMI data and devices properties stored in sysfs files.
SubmissionParse r._parseDmi( ) converts the text data from the <dmi> node as provided by the HWDB client into a simple dicitionary.
test:
./bin/test -t test_hwdb_ submission_ parser
= Launchpad lint =
Checking for conflicts. and issues in doctests and templates.
Running jslint, xmllint, pyflakes, and pylint.
Using normal rules.
Linting changed files: /launchpad/ scripts/ hwdbsubmissions .py /launchpad/ scripts/ tests/test_ hwdb_submission _parser. py
lib/canonical
lib/canonical
== Pyflakes notices ==
lib/canonical/ launchpad/ scripts/ hwdbsubmissions .py
22: redefinition of unused 'etree' from line 20
lib/canonical/ launchpad/ scripts/ tests/test_ hwdb_submission _parser. py
10: redefinition of unused 'etree' from line 8
== Pylint notices ==
lib/canonical/ launchpad/ scripts/ hwdbsubmissions .py cElementTree' (No module named etree)
20: [F0401] Unable to import 'xml.etree.
This message is not related to my changes; it was introduced by a branch that prepares the transistion to Python 2.5.