[sugar] Datastore: uid, entry_id, object_id, activity_id ?

Benjamin M. Schwartz bmschwar at fas.harvard.edu
Sun Mar 9 18:40:53 EDT 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Tomeu Vizoso wrote:
| On Sat, Mar 8, 2008 at 11:17 PM, Benjamin M. Schwartz
| <bmschwar at fas.harvard.edu> wrote:
|>  According to this page:
http://wiki.laptop.org/go/Journal_entry_bundles ...
|>
|>  Each journal entry has a unique "uid".  This 'uid' is listed in its
|>  metadata, and a conforming Journal Entry Bundle uses the uid calue to name
|>  various components of the bundle.  However, the DSMetadata object
|>  retrieved by calling dsobject.get_metadata() does not have a 'uid' key.
|>  What is the uid, and, given a DSObject, how am I supposed to determine it?
|
| Use the object_id attribute of the DSObject:
|
| http://tinyurl.com/2sgulm
|
http://dev.laptop.org/git?p=sugar-toolkit;a=blob;f=sugar/datastore/datastore.py;h=334c866a6783463ff53146a35300fd1191bebcb1;hb=HEAD#l84
|

OK.  On http://wiki.laptop.org/go/Journal_entry_bundles, you gave an
example of activity metadata:

{"activity_id":"67d38ab406143c6b6b023896e9efa8fc7706ff57",
~ "title_set_by_user":"0",
~ "uid":"15b114ad-1eed-461f-9315-129bba41ce2d",
~ "vid":"1.0",
~ "title":"Paint Activity",
~ "timestamp":"1192547469",
~ "activity":"org.laptop.Oficina",
~ "filename":"",
~ "icon-color":"#00588C,#00EA11",
~ "mtime":"2007-10-16T17:11:09",
~ "mountpoint":"18d7246f-72a4-4089-b7dc-2dbdf2b81aa6",
~ "keep":"0",
~ "mime_type":"image/png",
~ "preview":"15b114ad-1eed-461f-9315-129bba41ce2d"}

This metadata dict contains a 'uid' key.  Currently, the metadata
associated with a DSObject has no such key.  Is this a bug in the
datastore, a problem with that wiki page, or a misunderstanding on my part?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFH1Gd1UJT6e6HFtqQRAmI3AKCg5Sb2chM9M3H0BXb3tqrv8oRoagCgjjR8
aBqIC6v82gLsGssJcLLpq5g=
=4A1E
-----END PGP SIGNATURE-----


More information about the Sugar mailing list