[Sugar-devel] determine origin of file selected from an object chooser?
Erik Blankinship
erikb at mediamods.com
Thu Feb 10 11:11:40 EST 2011
How can I determine if a file loaded with a sugar object chooser was
selected from the datastore or from an external storage device?
dsobject = chooser.get_selected_object( )
logger.debug( "opening %s" % dsobject.file_path )
On an xo, opening a file from the usb results in something like:
opening /home/olpc/.sugar/default/data/rawobject ...
... which is not too different from opening a file from the journal. Is
there some additional metadata to look at to determine where the file came
from?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20110210/c53d4fb6/attachment.html>
More information about the Sugar-devel
mailing list