update upower template to 0.9/1.0
Bug #1245955 reported by
Martin Pitt
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
GNOME Settings Daemon |
New
|
Undecided
|
Unassigned | ||
python-dbusmock |
Fix Released
|
Medium
|
Martin Pitt | ||
python-dbusmock (Ubuntu) |
Fix Released
|
Wishlist
|
Unassigned |
Bug Description
upower's API recently has been split into the 0.9 branch (that our template represents now), and an 1.0 branch with a lot of obsolete features removed and some new properties. We need to provide a new template for that or add a parameter to the existing one to mock one or the other API, whichever is easier/better.
Changed in python-dbusmock: | |
status: | New → Triaged |
assignee: | nobody → Martin Pitt (pitti) |
importance: | Undecided → Medium |
Changed in python-dbusmock: | |
status: | Triaged → In Progress |
To post a comment you must log in.
In http:// bazaar. launchpad. net/~pitti/ python- dbusmock/ trunk/revision/ 139 I fixed the tests to get along with an 1.0 API "upower" tool.
In http:// bazaar. launchpad. net/~pitti/ python- dbusmock/ trunk/revision/ 140 I added the first cut of providing the 1.0 API in the upower template if the "DaemonVersion" property/template parameter gets set to >= '0.99'. It also adds a DisplayDevice, but there are no convenience methods yet to configure it. For now you need to use the normal Set() dbus.PROPERTIES _IFACE method to change properties. Perhaps you can tell me which properties usually need to be changed on the DisplayDevice, and I'll add a new convenience method ConfigureDispla yDevice( ) for it?