Re: 13.1.0 feature freeze reminder
On Fri, Sep 28, 2012 at 10:06 AM, Daniel Drake wrote: > On Thu, Sep 27, 2012 at 6:18 PM, Walter Bender > wrote: >> On Thu, Sep 27, 2012 at 5:46 PM, Daniel Drake wrote: >>> Hi, >>> >>> Just a quick reminder that we move to bug-fixes-only for 13.1.0 on >>> October 11th which is exactly 2 weeks from now. >> >> I have a new feature I would like to propose. > > This kind of thing needs to go in through Sugar - i.e. you'd need to > get it into Sugar-0.98 for it to be included. Will try to in time for your deadline. -walter > > Thanks > Daniel -- Walter Bender Sugar Labs http://www.sugarlabs.org ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: 13.1.0 feature freeze reminder
On Thu, Sep 27, 2012 at 6:18 PM, Walter Bender wrote: > On Thu, Sep 27, 2012 at 5:46 PM, Daniel Drake wrote: >> Hi, >> >> Just a quick reminder that we move to bug-fixes-only for 13.1.0 on >> October 11th which is exactly 2 weeks from now. > > I have a new feature I would like to propose. This kind of thing needs to go in through Sugar - i.e. you'd need to get it into Sugar-0.98 for it to be included. Thanks Daniel ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: 13.1.0 feature freeze reminder
Hi Walter, On 28 Sep 2012, at 01:18, Walter Bender wrote: > On Thu, Sep 27, 2012 at 5:46 PM, Daniel Drake wrote: >> Hi, >> >> Just a quick reminder that we move to bug-fixes-only for 13.1.0 on >> October 11th which is exactly 2 weeks from now. > > I have a new feature I would like to propose. maintain a list of > launch times in the metadata. This will be useful for datastore > analysis in the client. (The sugar-stats package [1] developed and > maintained by alsroot can also be used to capture these data, but I > posit that having these data as part of the datastore will facilitate > data visualizations within Sugar itself.) > > The attached patch, also shown inline here to > sugar-toolkit/src/sugar/activity/activity.py adds a timestamp each > time an activity is launched. These timestamps can be used to answer > questions such as how often an activity has been used? in school or at > home, et al. that are being asked by teachers and also used to provide > feedback to the child as to when and where they are working. +1 for the goal of more auto captured Journal metadata, this has come up for discussion numerous times so would be good to finally make at least this one step improvement (and will nudge me towards making an achievements Activity for Journal visualisation in Sugar). I'll leave to others to review your implementation. Regards, --Gary > --- a/activity.py > +++ b/activity.py > > @@ -324,6 +324,14 @@ class Activity(Window, gtk.Container): > if 'share-scope' in self._jobject.metadata: > share_scope = self._jobject.metadata['share-scope'] > > +if 'launch-times' in self._jobject.metadata: > +self._jobject.metadata['launch-times'] = '%s, %d' % ( > +self._jobject.metadata['launch-times'], > +int(time.time())) > +else: > +self._jobject.metadata['launch-times'] = \ > +str(int(time.time())) > + > self.shared_activity = None > self._join_id = None > > @@ -376,6 +384,7 @@ class Activity(Window, gtk.Container): > jobject.metadata['preview'] = '' > jobject.metadata['share-scope'] = SCOPE_PRIVATE > jobject.metadata['icon-color'] = icon_color > +jobject.metadata['launch-times'] = str(int(time.time())) > jobject.file_path = '' > > # FIXME: We should be able to get an ID synchronously from the DS, > > >> http://wiki.laptop.org/go/13.1.0/Release_plan >> >> Daniel >> ___ >> Devel mailing list >> Devel@lists.laptop.org >> http://lists.laptop.org/listinfo/devel > > > -walter > > -- > Walter Bender > Sugar Labs > http://www.sugarlabs.org > > > [1] http://git.sugarlabs.org/server/client/trees/master > ___ > Devel mailing list > Devel@lists.laptop.org > http://lists.laptop.org/listinfo/devel ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: 13.1.0 feature freeze reminder
On Thu, Sep 27, 2012 at 5:46 PM, Daniel Drake wrote: > Hi, > > Just a quick reminder that we move to bug-fixes-only for 13.1.0 on > October 11th which is exactly 2 weeks from now. I have a new feature I would like to propose. maintain a list of launch times in the metadata. This will be useful for datastore analysis in the client. (The sugar-stats package [1] developed and maintained by alsroot can also be used to capture these data, but I posit that having these data as part of the datastore will facilitate data visualizations within Sugar itself.) The attached patch, also shown inline here to sugar-toolkit/src/sugar/activity/activity.py adds a timestamp each time an activity is launched. These timestamps can be used to answer questions such as how often an activity has been used? in school or at home, et al. that are being asked by teachers and also used to provide feedback to the child as to when and where they are working. --- a/activity.py +++ b/activity.py @@ -324,6 +324,14 @@ class Activity(Window, gtk.Container): if 'share-scope' in self._jobject.metadata: share_scope = self._jobject.metadata['share-scope'] +if 'launch-times' in self._jobject.metadata: +self._jobject.metadata['launch-times'] = '%s, %d' % ( +self._jobject.metadata['launch-times'], +int(time.time())) +else: +self._jobject.metadata['launch-times'] = \ +str(int(time.time())) + self.shared_activity = None self._join_id = None @@ -376,6 +384,7 @@ class Activity(Window, gtk.Container): jobject.metadata['preview'] = '' jobject.metadata['share-scope'] = SCOPE_PRIVATE jobject.metadata['icon-color'] = icon_color +jobject.metadata['launch-times'] = str(int(time.time())) jobject.file_path = '' # FIXME: We should be able to get an ID synchronously from the DS, > http://wiki.laptop.org/go/13.1.0/Release_plan > > Daniel > ___ > Devel mailing list > Devel@lists.laptop.org > http://lists.laptop.org/listinfo/devel -walter -- Walter Bender Sugar Labs http://www.sugarlabs.org [1] http://git.sugarlabs.org/server/client/trees/master launch-time.patch Description: Binary data ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
13.1.0 feature freeze reminder
Hi, Just a quick reminder that we move to bug-fixes-only for 13.1.0 on October 11th which is exactly 2 weeks from now. http://wiki.laptop.org/go/13.1.0/Release_plan Daniel ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel