[sugar] Putting stuff inside the datastore for non-activities
Marco Pesenti Gritti
Fri Oct 10 16:54:08 EDT 2008
On Fri, Oct 10, 2008 at 10:43 PM, Sayamindu Dasgupta
<sayamindu at gmail.com> wrote:
> The sugar-almanac has a nice guide on how put stuff inside the
> datastore programmatically
> 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 ?
afaik you can put it wherever you like. copy-to-journal for example is
just writing an existing file to the DS...
More information about the Sugar-devel