Hi Utkarsh,<div><br></div><div>I find the save as an interesting feature. From my knowledge, it was previously built into Sugar, however it was removed due to it annoying people. I don't know the exact reasoning, but here is what I think:</div><div><br></div><div>* When does somebody quit and activity? Is it the right time to be asking them to title and describe it?</div><div> - When the bell rings and the student want to go to Lunch. Not the right time to ask to save stuff.</div><div> - When the teacher wants to move on to an different activity. This is defiantly not the right time - the "save as" feature is acting in opposition with the teacher</div><div> - Those are the 2 most common times that I can think of. Remember this is for learners.</div><div> -> Therefore this is a bad time to ask this</div><div> -> Therefore we will annoy people</div><div><br></div><div>* Will we get good quality titles and descriptions?</div><div> - No, people are rushed and inconvenienced by the modal popup. It stole their computer.</div><div> -> They are not in a good mindset to write titles.</div><div><br></div><div>We also see many other services migrating away from the traditional "save as" dialog on exit. Eg, Google Docs uses an approach the same as Sugar rather than a "save as" dialog. They set it to a default titles ("Untitled document"), but you can then change that name eaisly.</div><div><br></div><div>Maybe we need think about what the problem this feature solves? Whatever it is, "save as" probably won't work. We need to find an actual solution to user problems.</div><div><br></div><div>Thanks,</div><div>Sam</div><div><br></div><div><br></div><div>On Mon, Apr 4, 2016 at 9:38 PM, Utkarsh Tiwari <iamutkarshtiwari@gmail.com> wrote:<br>
<blockquote type="cite"><div class="plaintext" style="white-space: pre-wrap;">Hi,
Whenever we start an activity from homeview, it gets registered in
the Journal (through datastore.write()).
I have inspected the activity.py file but there is someplace else
besides activity.py where the datastore is being modified(activity
instance is being added). I need to figure this out to implement the
"Save As" feature to intervene the datastore.write() call so that user
could provide the activity name. Could anyone please point me in the
right direction?
Thanks,
Utkarsh Tiwari
On 3/22/16, Tony Anderson <<a href="mailto:tony_anderson@usa.net">tony_anderson@usa.net</a>> wrote:
<blockquote> Hi,
I am not sure what you are asking. Read the excellent comment in
activity.py. There are set_canvas, read_file, and write_file among other
examples of functions in activity.py directly accessible by the
sub-class. Normally, that activity is referenced by 'self'.
Tony
On 03/22/2016 12:02 AM, Utkarsh Tiwari wrote:
<blockquote> Hi,
Is there any way to get the currently active
activity(sugar3.activity.activity -> class Activity()) instance ?
I need this access to call a function of "Activity class" in
activity.py to activate a feature I have integrated.
Thanks,
Utkarsh Tiwari
_______________________________________________
Sugar-devel mailing list
<a href="mailto:Sugar-devel@lists.sugarlabs.org">Sugar-devel@lists.sugarlabs.org</a>
<a href="http://lists.sugarlabs.org/listinfo/sugar-devel">http://lists.sugarlabs.org/listinfo/sugar-devel</a>
</blockquote>
_______________________________________________
Sugar-devel mailing list
<a href="mailto:Sugar-devel@lists.sugarlabs.org">Sugar-devel@lists.sugarlabs.org</a>
<a href="http://lists.sugarlabs.org/listinfo/sugar-devel">http://lists.sugarlabs.org/listinfo/sugar-devel</a>
</blockquote>_______________________________________________
Sugar-devel mailing list
<a href="mailto:Sugar-devel@lists.sugarlabs.org">Sugar-devel@lists.sugarlabs.org</a>
<a href="http://lists.sugarlabs.org/listinfo/sugar-devel">http://lists.sugarlabs.org/listinfo/sugar-devel</a>
</div></blockquote></div>