[Sugar-devel] determine origin of file selected from an object chooser?

Erik Blankinship erikb at mediamods.com
Fri Feb 11 11:40:04 EST 2011


On Thu, Feb 10, 2011 at 1:20 PM, Samuel Greenfeld <greenfeld at laptop.org>
 wrote:

> As far as I know there really is no need; when your activity saves state
> (when exiting, etc.), it should save the copied file as part of the
> activity's journal entry.
>
> At least this is how it has always worked with Jukebox & Read.
>
>
Do I understand what you've written correctly?  If I open and play a .wav
file located on a usb stick in JukeBox, the wav file's data is serialized
into the activity instance on write_file?

I just played with jukebox and it does not seem to work this way -- I loaded
in a .wav file, played it, and then closed my activity instance.  I removed
the usb stick and relaunched my jukebox activity instance.  Jukebox was not
able to play my file.  Also, my file was not added to the journal.

Let me try to rephrase my question in terms of the jukebox activity: If I
wanted to add an option to jukebox which "imports" wav files selected with
the object chooser into my journal, what would be the best way to detect if
the files were already in the journal or not?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20110211/e4d8d9e1/attachment.html>


More information about the Sugar-devel mailing list