getting all objects by a service

Thiago Macieira thiago at kde.org
Mon Apr 28 02:43:09 PDT 2008


On Monday 28 April 2008 10:55:01 thomas wrote:
> Hello,
> Is there a possibility in python to get all Objectnames that a service
> provides if you have the servicename?

No. You have to call each and every object in the hierarchy and ask for their 
child objects. That's what qdbus does when you tell it to inspect a given 
service name.

That's a reasonable action for a user-interactive tool whose job is to inspect 
objects anyways.

It is NOT reasonable for a program to do that on its own. Many services do not 
reply correctly when introspected, some do not reply at all. Some services 
could support the concept of "virtual objects", with hundreds or thousands of 
objects registered and created on-demand.

So, I have to ask: what is your use-case? You're asking a question because 
you're coming up with a solution, but you have not presented the original 
problem.

-- 
  Thiago Macieira  -  thiago (AT) macieira.info - thiago (AT) kde.org
    PGP/GPG: 0x6EF45358; fingerprint:
    E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://lists.freedesktop.org/archives/dbus/attachments/20080428/4e112ae6/attachment.pgp 


More information about the dbus mailing list