Re: [Sugar-devel] [Feature] Start an activity from another activity

2015-04-28 Thread Sam P.
Hi Gonzalo, Removing the mime_type option sounds like a great idea. I will look further into it tomorrow. Thanks, Sam On Tue, Apr 28, 2015 at 6:51 AM Gonzalo Odiard wrote: > I was looking at the prs and the feature page. I proposed a simple > implementation change > in the pr, but to keep the

Re: [Sugar-devel] [Feature] Start an activity from another activity

2015-04-27 Thread Gonzalo Odiard
I was looking at the prs and the feature page. I proposed a simple implementation change in the pr, but to keep the discussion more open, I continue here with questions about the general design proposed in the feature page [1]. The wiki say: "An activity can start other activity by: * knowing the

Re: [Sugar-devel] [Feature] Start an activity from another, activity

2015-04-23 Thread James Cameron
On Thu, Apr 23, 2015 at 04:12:24PM +0200, Tony Anderson wrote: > Browse (as most browsers) downloads any mime_type it does not know > how to display. I modified Browse not to display pdf (should be done > in the Read activity). > > The Read activity does not display plain text (e.g. Rachel Gutenber

Re: [Sugar-devel] [Feature] Start an activity from another, activity

2015-04-23 Thread Gonzalo Odiard
On Thu, Apr 23, 2015 at 11:12 AM, Tony Anderson wrote: > Hi, Gonzalo > > Browse (as most browsers) downloads any mime_type it does not know how to > display. I modified Browse not to display pdf (should be done in the Read > activity). > The Read activity does not display plain text (e.g. Rachel

Re: [Sugar-devel] [Feature] Start an activity from another, activity

2015-04-23 Thread Tony Anderson
Hi, Gonzalo Browse (as most browsers) downloads any mime_type it does not know how to display. I modified Browse not to display pdf (should be done in the Read activity). The Read activity does not display plain text (e.g. Rachel Gutenberg collection - Great Books). This is something that prob

Re: [Sugar-devel] [Feature] Start an activity from another, activity

2015-04-23 Thread Gonzalo Odiard
labs.org wrote: > >> Message: 1 >> Date: Wed, 22 Apr 2015 15:14:03 -0300 >> From: Gonzalo Odiard >> To: "Sam P." >> Cc: Sugar-dev Devel, Manuel Qui?ones >> >> Subject: Re: [Sugar-devel] [Feature] Start an activity from another >>

Re: [Sugar-devel] [Feature] Start an activity from another, activity

2015-04-23 Thread Tony Anderson
rd To: "Sam P." Cc: Sugar-dev Devel, Manuel Qui?ones Subject: Re: [Sugar-devel] [Feature] Start an activity from another activity Message-ID: Content-Type: text/plain; charset="iso-8859-1" > > >* It would be nice to have it integrate with the

Re: [Sugar-devel] [Feature] Start an activity from another activity

2015-04-22 Thread Sam P.
Hi Gonzalo, On Thu, Apr 23, 2015 at 4:14 AM Gonzalo Odiard wrote: > >> * It would be nice to have it integrate with the New ASLO and prompt when >> the user doesn't have an activity and must download one. The New ASLO has >> data sorted by bundle ID and is collecting mime types for all activiti

Re: [Sugar-devel] [Feature] Start an activity from another activity

2015-04-22 Thread Gonzalo Odiard
> > > * It would be nice to have it integrate with the New ASLO and prompt when > the user doesn't have an activity and must download one. The New ASLO has > data sorted by bundle ID and is collecting mime types for all activities, > meaning we have all the data required to make this work. The ne

Re: [Sugar-devel] [Feature] Start an activity from another activity

2015-04-20 Thread Gonzalo Odiard
The activity do not declare a dependency on another activity, and activity versions are not contemplated. The use case is simple, if you download something from the web, you can open it without pass throw the Journal (the "Show in Journal" button). Another candidate is the GetBooks activity. The

Re: [Sugar-devel] [Feature] Start an activity from another activity

2015-04-19 Thread James Cameron
Thanks. What you describe sounds like activating a journal entry, which causes the default activity to be started. I think I'd like to hear from activity authors who would use the feature. For example, download completion in Browse; at the moment it offers "show in journal", but could be "open".

Re: [Sugar-devel] [Feature] Start an activity from another activity

2015-04-19 Thread Sam P.
Hi James, I do not think that these dependencies should be encoded. I do not want to create a confusing nested activity list thingo. When I think about it a little more, it kind of splits in to 2 use cases for me. Specific (launch this given bundle; eg. open pippy after python export in turtle)

Re: [Sugar-devel] [Feature] Start an activity from another activity

2015-04-19 Thread James Cameron
I have no use case for the feature, sorry. The activities I'm mostly concerned with stand alone. But if an activity is written to use the feature, a dependency is created; my question is _will_ it be encoded, and what are the effects on other actions that change the list of activities? What you

Re: [Sugar-devel] [Feature] Start an activity from another activity

2015-04-19 Thread Sam P.
Hi James, Having activity dependencies is an interesting idea. What use case would it be useful in? I was thinking about different use cases, eg; open this file I just downloaded in an activity that deals with that mine, I exported my turtle to python code so open it in pippy, I need to add a pi

Re: [Sugar-devel] [Feature] Start an activity from another activity

2015-04-19 Thread James Cameron
How does an activity declare a dependency on another activity? (e.g. activity.info file) Is the dependency versioned? (e.g. depends = Browse >= 157) Is the dependency rigid or only a suggestion? (e.g. suggests = Browse >= 157, vs depends = Browse > 149) How does a download and install of an acti

[Sugar-devel] [Feature] Start an activity from another activity

2015-04-19 Thread Sam P.
Hi All, One feature that was proposed last cycle but never got 100% finished was to add an api for activities to launch other activities. I prematurely merged it last week, but would like to start a discussion on getting it improved and merged again. Feature Page: http://wiki.sugarlabs.org/go/Fe