[sugar] Putting stuff inside the datastore for non-activities

Sayamindu Dasgupta sayamindu at gmail.com
Fri Oct 10 16:43:06 EDT 2008


Hello,
The sugar-almanac has a nice guide on how put stuff inside the
datastore programmatically
(http://wiki.laptop.org/go/Sugar.datastore.datastore#How_do_I_save_a_simple_text_file_to_the_datastore.3F)
However, it makes the assumption that the method is being called from
a sugar activity. (file_path = os.path.join(self.get_activity_root(),
'instance', filename))
Can anyone tell me where to put in a file if I am not calling this
from within an activity ?
TIA,
Sayamindu


-- 
Sayamindu Dasgupta
[http://sayamindu.randomink.org/ramblings]


More information about the Sugar mailing list