Re: [Sugar-devel] [RELEASE] Labyrinth-5
On Sat, Apr 11, 2009 at 4:44 AM, Gary C Martin wrote: > Hi Michael, > > On 11 Apr 2009, at 06:48, Michael Stone wrote: > >>> P.S. One notable bug for XO 8.2 distro users, is that adding images >>> from the Journal is currently broken (bumping into rainbow), adding >>> images works fine on sugar-jhbuild and should be fine on Soas distros >>> and xo-rawhide (though I haven't tested there just yet). >> >> Gary, >> >> Could you please send me a link to a ticket with logs? > > Sorry if I wasn't clear, it's not a Rainbow bug, but an issue I need > to fix in Labyrinth. I had a few early passes at fixing Journal image > import integration but not quite there yet. Basically the issue is > that Labyrinths image loading code is buried deep down in multiple > levels of class and/or Python modules, so I don't have obvious access > to the various Activity name spaces for knowing where is safe to save. > > Line 51 if you want a quick peek: > > http://git.sugarlabs.org/projects/labyrinth/repos/mainline/blobs/master/src/ImageThought.py > > Let me take another shot (might have some time on Sunday), alsroot > made some changes here after my initial attempts, but I think he was > fixing something else, need to catch up with what he was after. A strategy that has worked for me in the past is to chdir to the right directory in the activity module startup. That way you don't have to import sugar modules into low level source code. Another way to deal with it is to use the environment variables instead of the sugar APIs, and just test for the presence of the environment variables before using them. -Wade ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] [RELEASE] Labyrinth-5
On Sat, Apr 11, 2009 at 10:33:06AM +, Aleksey Lim wrote: > On Sat, Apr 11, 2009 at 09:44:33AM +0100, Gary C Martin wrote: > > Hi Michael, > > > > On 11 Apr 2009, at 06:48, Michael Stone wrote: > > > > >> P.S. One notable bug for XO 8.2 distro users, is that adding images > > >> from the Journal is currently broken (bumping into rainbow), adding > > >> images works fine on sugar-jhbuild and should be fine on Soas distros > > >> and xo-rawhide (though I haven't tested there just yet). > > > > > > Gary, > > > > > > Could you please send me a link to a ticket with logs? > > > > Sorry if I wasn't clear, it's not a Rainbow bug, but an issue I need > > to fix in Labyrinth. I had a few early passes at fixing Journal image > > import integration but not quite there yet. Basically the issue is > > that Labyrinths image loading code is buried deep down in multiple > > levels of class and/or Python modules, so I don't have obvious access > > to the various Activity name spaces for knowing where is safe to save. > > > > Line 51 if you want a quick peek: > > > > http://git.sugarlabs.org/projects/labyrinth/repos/mainline/blobs/master/src/ImageThought.py > > looks like rainbow prevents activity to save files to its(activity) own > instance directory: os.path.join(get_activity_root(), 'tmp'... (just a joke) In my mind using rainbow is like using cannons to shot sparrows more relevant weapon is http://en.wikipedia.org/wiki/Slingshot :D -- Aleksey ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] [RELEASE] Labyrinth-5
On Sat, Apr 11, 2009 at 09:44:33AM +0100, Gary C Martin wrote: > Hi Michael, > > On 11 Apr 2009, at 06:48, Michael Stone wrote: > > >> P.S. One notable bug for XO 8.2 distro users, is that adding images > >> from the Journal is currently broken (bumping into rainbow), adding > >> images works fine on sugar-jhbuild and should be fine on Soas distros > >> and xo-rawhide (though I haven't tested there just yet). > > > > Gary, > > > > Could you please send me a link to a ticket with logs? > > Sorry if I wasn't clear, it's not a Rainbow bug, but an issue I need > to fix in Labyrinth. I had a few early passes at fixing Journal image > import integration but not quite there yet. Basically the issue is > that Labyrinths image loading code is buried deep down in multiple > levels of class and/or Python modules, so I don't have obvious access > to the various Activity name spaces for knowing where is safe to save. > > Line 51 if you want a quick peek: > > http://git.sugarlabs.org/projects/labyrinth/repos/mainline/blobs/master/src/ImageThought.py looks like rainbow prevents activity to save files to its(activity) own instance directory: os.path.join(get_activity_root(), 'tmp'... -- Aleksey ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] [RELEASE] Labyrinth-5
Hi Michael, On 11 Apr 2009, at 06:48, Michael Stone wrote: >> P.S. One notable bug for XO 8.2 distro users, is that adding images >> from the Journal is currently broken (bumping into rainbow), adding >> images works fine on sugar-jhbuild and should be fine on Soas distros >> and xo-rawhide (though I haven't tested there just yet). > > Gary, > > Could you please send me a link to a ticket with logs? Sorry if I wasn't clear, it's not a Rainbow bug, but an issue I need to fix in Labyrinth. I had a few early passes at fixing Journal image import integration but not quite there yet. Basically the issue is that Labyrinths image loading code is buried deep down in multiple levels of class and/or Python modules, so I don't have obvious access to the various Activity name spaces for knowing where is safe to save. Line 51 if you want a quick peek: http://git.sugarlabs.org/projects/labyrinth/repos/mainline/blobs/master/src/ImageThought.py Let me take another shot (might have some time on Sunday), alsroot made some changes here after my initial attempts, but I think he was fixing something else, need to catch up with what he was after. Regards, --Gary > Thanks, > > Michael ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
[Sugar-devel] [RELEASE] Labyrinth-5
Hi, == Source == http://download.sugarlabs.org/sources/honey/Labyrinth/Labyrinth-5.tar.bz2 == Bundle == http://activities.sugarlabs.org/en-US/sugar/addon/4078 == Web page == http://wiki.sugarlabs.org/go/Activities/Labyrinth Again, many thanks go to Aleksey Lim (alsroot) for all his efforts and assistance. There is still plenty of work to do, and bugs to fix, translations to start... but this at least gets our best effort so far, out there. I'll try and make sure there a much shorter time gap before a version 6 release ;-) Regards, --Gary P.S. One notable bug for XO 8.2 distro users, is that adding images from the Journal is currently broken (bumping into rainbow), adding images works fine on sugar-jhbuild and should be fine on Soas distros and xo-rawhide (though I haven't tested there just yet). ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel