Re: [Sugar-devel] How to start the Browse activity from my own activity?

2010-02-06 Thread Behavior Vehikel
Addendum to my question about starting the Browse activity from my own activity. In a reply to my question Gonzalo Odiard wrote: “Can't you use hulahop like SocialCalc?” I tried it today. Used a few lines of code from Browse and now I can display the HTML inside my activity. Think this will improv

Re: [Sugar-devel] How to start the Browse activity from my own activity?

2010-02-04 Thread Tomeu Vizoso
_the_datastore_programmatically.3F >> >> That should open Browse on the Journal entry.  I haven't tried it >> myself, but I have used the other information on that page >> successfully, including creating Journal entries. >> >> James Simmons >> >

Re: [Sugar-devel] How to start the Browse activity from my own activity?

2010-02-03 Thread Behavior Vehikel
Hi, >> You should be able to create your web page as a Journal entry with the >> MIME type of text/html, then use code like that described here: >> >> http://wiki.sugarlabs.org/go/Development_Team/Almanac/sugar.datastore.datastore#How_do_I_resume_an_activity_from_the_datastore_programmatically.3F

Re: [Sugar-devel] How to start the Browse activity from my own activity?

2010-02-03 Thread Bert Freudenberg
t; successfully, including creating Journal entries. > > James Simmons > > >> Date: Mon, 1 Feb 2010 20:58:59 +0100 >> From: Behavior Vehikel >> Subject: [Sugar-devel] How to start the Browse activity from my own >>activity? >> To: sugar-devel &g

Re: [Sugar-devel] How to start the Browse activity from my own activity?

2010-02-03 Thread Jim Simmons
should open Browse on the Journal entry. I haven't tried it myself, but I have used the other information on that page successfully, including creating Journal entries. James Simmons > Date: Mon, 1 Feb 2010 20:58:59 +0100 > From: Behavior Vehikel > Subject: [Sugar-devel] How to st

Re: [Sugar-devel] How to start the Browse activity from my own activity?

2010-02-02 Thread James Cameron
On Wed, Feb 03, 2010 at 08:33:31AM +0100, Tomeu Vizoso wrote: > Sure, if you tell Sugar to go to the currently active Browse session, > it won't start a new one. There were changes in how activities are > launched in 0.84, but that change wasn't "don't let more than one > browser run at the same ti

Re: [Sugar-devel] How to start the Browse activity from my own activity?

2010-02-02 Thread Tomeu Vizoso
On Tue, Feb 2, 2010 at 23:55, James Cameron wrote: > On Tue, Feb 02, 2010 at 09:59:12AM +0100, Tomeu Vizoso wrote: >> On Mon, Feb 1, 2010 at 23:30, James Cameron wrote: >> > I've just tested; one can open Wikipedia activity, type google.com into >> > the location text field, and then start a Brow

Re: [Sugar-devel] How to start the Browse activity from my own activity?

2010-02-02 Thread Gonzalo Odiard
Can't you use hulahop like SocialCalc? Gonzalo On Mon, Feb 1, 2010 at 4:58 PM, Behavior Vehikel wrote: > How to start the Browse activity from my own activity? > > My Kandid activity can dump internal states as a HTML files. For > example this information is written to > ~/.sugar/default/net.sou

Re: [Sugar-devel] How to start the Browse activity from my own activity?

2010-02-02 Thread Wade Brainerd
On Tue, Feb 2, 2010 at 5:55 PM, James Cameron wrote: > On Tue, Feb 02, 2010 at 09:59:12AM +0100, Tomeu Vizoso wrote: >> On Mon, Feb 1, 2010 at 23:30, James Cameron wrote: >> > I've just tested; one can open Wikipedia activity, type google.com into >> > the location text field, and then start a Br

Re: [Sugar-devel] How to start the Browse activity from my own activity?

2010-02-02 Thread James Cameron
On Tue, Feb 02, 2010 at 09:59:12AM +0100, Tomeu Vizoso wrote: > On Mon, Feb 1, 2010 at 23:30, James Cameron wrote: > > I've just tested; one can open Wikipedia activity, type google.com into > > the location text field, and then start a Browse activity from the > > activity ring ... result, two ac

Re: [Sugar-devel] How to start the Browse activity from my own activity?

2010-02-02 Thread Tomeu Vizoso
On Mon, Feb 1, 2010 at 23:30, James Cameron wrote: > On Mon, Feb 01, 2010 at 02:23:46PM -0800, Bert Freudenberg wrote: >> On 01.02.2010, at 14:20, James Cameron wrote: >> > >> > On Mon, Feb 01, 2010 at 01:41:26PM -0800, Bert Freudenberg wrote: >> >> It includes a copy of browse, doesn't it? >> > >

Re: [Sugar-devel] How to start the Browse activity from my own activity?

2010-02-02 Thread Tomeu Vizoso
On Tue, Feb 2, 2010 at 00:39, Chris Ball wrote: > Hi, > > >  >>> sys.path.append("/home/olpc/Activities/Browse.activity") >  >>> import webactivity > >  >> So it works only on the XO ... interesting. > >  > Yes, that was curious.  Has nobody noticed it not working on SoaS >  > or anything else? >

Re: [Sugar-devel] How to start the Browse activity from my own activity?

2010-02-01 Thread Chris Ball
Hi, >>> sys.path.append("/home/olpc/Activities/Browse.activity") >>> import webactivity >> So it works only on the XO ... interesting. > Yes, that was curious. Has nobody noticed it not working on SoaS > or anything else? For Wikibrowse under Sugar 0.82, we asked the activity regis

Re: [Sugar-devel] How to start the Browse activity from my own activity?

2010-02-01 Thread James Cameron
On Mon, Feb 01, 2010 at 02:23:46PM -0800, Bert Freudenberg wrote: > On 01.02.2010, at 14:20, James Cameron wrote: > > > > On Mon, Feb 01, 2010 at 01:41:26PM -0800, Bert Freudenberg wrote: > >> It includes a copy of browse, doesn't it? > > > > It imports. > > > > In /home/olpc/Activities/Wikipedi

Re: [Sugar-devel] How to start the Browse activity from my own activity?

2010-02-01 Thread Bert Freudenberg
On 01.02.2010, at 14:20, James Cameron wrote: > > On Mon, Feb 01, 2010 at 01:41:26PM -0800, Bert Freudenberg wrote: >> It includes a copy of browse, doesn't it? > > It imports. > > In /home/olpc/Activities/Wikipedia.activity/activity.py: > > sys.path.append("/home/olpc/Activities/Browse.activit

Re: [Sugar-devel] How to start the Browse activity from my own activity?

2010-02-01 Thread James Cameron
On Mon, Feb 01, 2010 at 01:41:26PM -0800, Bert Freudenberg wrote: > It includes a copy of browse, doesn't it? It imports. In /home/olpc/Activities/Wikipedia.activity/activity.py: sys.path.append("/home/olpc/Activities/Browse.activity") import webactivity -- James Cameron http://quozl.linux.org

Re: [Sugar-devel] How to start the Browse activity from my own activity?

2010-02-01 Thread Bert Freudenberg
On 01.02.2010, at 13:39, Martin Langhoff wrote: > > On Mon, Feb 1, 2010 at 9:43 PM, Bert Freudenberg wrote: >> Activities are not allowed to directly start another activity. > > True. And yet, the Wikipedia activity starts Browse. It includes a copy of browse, doesn't it? - Bert - __

Re: [Sugar-devel] How to start the Browse activity from my own activity?

2010-02-01 Thread Martin Langhoff
On Mon, Feb 1, 2010 at 9:43 PM, Bert Freudenberg wrote: > Activities are not allowed to directly start another activity. True. And yet, the Wikipedia activity starts Browse. Maybe copy whatever the wikipedia activity does? m -- martin.langh...@gmail.com mar...@laptop.org -- School Server A

Re: [Sugar-devel] How to start the Browse activity from my own activity?

2010-02-01 Thread Bert Freudenberg
On 01.02.2010, at 11:58, Behavior Vehikel wrote: > > How to start the Browse activity from my own activity? > > My Kandid activity can dump internal states as a HTML files. For > example this information is written to > ~/.sugar/default/net.sourceforge.kandid/tmp/_znuaxz_169/index.html > > Now I

[Sugar-devel] How to start the Browse activity from my own activity?

2010-02-01 Thread Behavior Vehikel
How to start the Browse activity from my own activity? My Kandid activity can dump internal states as a HTML files. For example this information is written to ~/.sugar/default/net.sourceforge.kandid/tmp/_znuaxz_169/index.html Now I am searching for a possibility to launch the Brows activity displ