Merge lp://qastaging/~david4dev/dmedia/udisks into lp://qastaging/dmedia
Status: | Merged |
---|---|
Merged at revision: | 215 |
Proposed branch: | lp://qastaging/~david4dev/dmedia/udisks |
Merge into: | lp://qastaging/dmedia |
Diff against target: |
801 lines (+503/-22) 8 files modified
dmedia/importer.py (+14/-2) dmedia/schema.py (+245/-12) dmedia/tests/test_core.py (+2/-0) dmedia/tests/test_importer.py (+3/-1) dmedia/tests/test_schema.py (+17/-6) dmedia/udisks.py (+146/-0) dmedia/views.py (+57/-1) misc/debug-udisks.py (+19/-0) |
To merge this branch: | bzr merge lp://qastaging/~david4dev/dmedia/udisks |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Jason Gerard DeRose | Approve | ||
Review via email: mp+68976@code.qastaging.launchpad.net |
Description of the change
Implements udisks support and adds schema 'dmedia/partition' and 'dmedia/drive'. Imports and file stores now have an associated partition that in turn has an associated drive.
The partition schema currently contains the following information:
'uuid' - the UUID of the partition
'size' - the capacity of the partition in bytes
'label' - the user visible label of the partition
'partition_
'fs' - the file system type
'drive_id' - the id of the drive that the partition is on
The drive schema currently contains the following information:
'serial' - the serial number of the device
'wwn' - the world wide number for the device
'vendor' - the vendor of the device
'model' - the model name of the device
'revision' - the model revision of the device
Extra information could be easily added is needed.
The _id of dmedia/partition is` b32encode(
Really nice work here, David!
You'll need to get the all unit tests working again, though. Most of the failures seem to be in the schema tests, the 2 files being:
dmedia/schema.py tests/test_ schema. py
dmedia/
You can run just the schema tests like this:
./setup.py test --names=schema
And make sure to run all the tests at the end to, to make sure there aren't other failures. Run all the tests like this:
./setup.py test
But again, nice work! You jumped right in!