Re: [Sugar-devel] getting datastoreObject from read_file call?

2010-12-01 Thread Aleksey Lim
On Wed, Dec 01, 2010 at 01:19:40PM -0500, Erik Blankinship wrote:
> When read_file is called by my activity, I get a file path to something that
> is probably in my journal.
> 
> How can I get the datastoreObject affiliated with that file_path?

Activity class has metadata property, which is a dict type. It is
the only useful data (except file with data associated with the jobjec)
from the jobjec. object_id is "uid" key there.

If you are not sure, see sugar-toolkit sources,
http://git.sugarlabs.org/sugar-toolkit/mainline/blobs/master/src/sugar/activity/activity.py

-- 
Aleksey
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


[Sugar-devel] getting datastoreObject from read_file call?

2010-12-01 Thread Erik Blankinship
When read_file is called by my activity, I get a file path to something that
is probably in my journal.

How can I get the datastoreObject affiliated with that file_path?
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel