~laney/python-dbusmock/timedated-template

Viewing all changes in revision 148.

  • Committer: Martin Pitt
  • Date: 2013-11-27 17:53:15 UTC
  • mfrom: (147.1.1 python-dbusmock)
  • Revision ID: martin.pitt@ubuntu.com-20131127175315-fa38rq8a36ps3jxd
Add support for the D-Bus ObjectManager interface
  
An optional is_object_manager parameter to the DBusMockObject
constructor allows objects which implement the ObjectManager
interface to be exposed on the bus. This provides some level of
convenience by eliminating the need to describe this standard
interface.

Note that InterfacesAdded and InterfacesRemoved signals are *not*
emitted automatically when objects are added and removed, as a
single such signal could potentially correspond with a series of
python-dbusmock method calls. Support for them can be added in
future if python-dbusmock grows a method for atomically adding
multiple objects, each with several interfaces (and the same
for removals).

Patch by Philip Whitnall, tests by Martin Pitt.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: