[Sugar-devel] Can I use the keep or title_set_by_user key of metadata to store info about my activity
Gary C Martin
gary at garycmartin.com
Mon Aug 3 21:46:17 EDT 2009
On 4 Aug 2009, at 02:09, sumit singh wrote:
> Hi Tomeu,
> This is in continuation with our chat yesterday. The write/report
> activity would be having 3 states , I mean whether the user is working
> on a blank document , designing a new template or using a previously
> designed template. So, what I wanted was to save this state as well
> while saving the activity using the write_file method, so that when I
> resume my activity from the journal , i should switch over directly to
> that state where the user closed the activity.
Can you store state information as part of your documents format?
Perhaps you have to use some standard document format – but even then
you could just append some small text tag at the end of the document,
and strip it back off when resuming (I know, bit of a hack, but
better than misusing existing meta-data).
More information about the Devel