[sugar] Issues with the presence service

Marco Pesenti Gritti mpg
Sat Jul 29 08:11:34 EDT 2006

Dan Williams wrote:
> On Thu, 2006-07-27 at 11:43 +0200, Marco Pesenti Gritti wrote:
>> - There are places where I want to pass services around through dbus. We 
>> should use paths for this right? I couldn't find a way to recreate the 
>> objects other than the protected _new_object though.
> That's intentional.
> Just use the object path of the Service that the PS returned to you.  I
> removed the service serialization stuff because the Service's object
> path is essentially a pointer to the service, and that's what you send
> to the PS to have it operate on.
I'm not sure to understand this.... The use case is:

1 I have a sugar.presence.Activity in the shell
2 I want to pass it to an activity (different process) through dbus. I 
currently do this with activity.object_path().
3 From the activity process I want to call sugar.presence.Activity 
methods (get_id, get_services etc). To be able to do it I need to 
'recreate' the object from his path. And I'm doing it using _new_obj.

What is the correct way to do this?

I possibly misunderstood your comment in irc about using object paths... 
maybe the activity_id should be used for this instead?


More information about the Sugar-devel mailing list