Re: [Sugar-devel] New cycle, new feature(s) :D
I would like to see this feature implemented, as it will ease my own testing, and make use of the Journal more acceptable to expert users who already know about multiple section in other software. -- James Cameron http://quozl.linux.org.au/ ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
[Sugar-devel] New cycle, new feature(s) :D
Hi all. With the exciting news of the beginning of a new cycle, may I take this opportunity to revamp the efforts for introducing the much-needed feature http://wiki.sugarlabs.org/go/Features/Multi_selection ? The feature is already gtk3 ported (just needs some tweaking to format a patch out of it, to be applicable on the mainline). Does this time sound good? If yes, I will proceed towards generating the patch for this, and would expect that it is integrated soon into sugar-mainline, so as to prevent any backlogs. Regards, Ajay Garg Dextrose Developer Activity Central: http://activitycentral.com ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] Is gabble not working correctly?
On 01/07/2013 05:12 PM, Jerry Vonau wrote: Hi All: I'm having some difficulties in having the XOs connect when booting. I can use the "register with schoolserver" method or populating collaboration server, which will cause the neighbourhood view to become populated until rebooted. Once rebooted the neighbourhood view doesn't become populated and the XO is running salut according to ps -A and netstat has no connection to the jabber server but salut is running. Can anybody else confirm this behaviour? Jerry ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel This may be the problem: http://bugs.sugarlabs.org/ticket/4289 Tom Gilliard satellit on #sugar freenode IRC ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] [ASLO] Release Ruler-24
On Thu, Dec 27, 2012 at 10:22 PM, Sugar Labs Activities < activit...@sugarlabs.org> wrote: > Activity Homepage: > http://activities.sugarlabs.org/addon/4192 > > Sugar Platform: > 0.82 - 0.98 > > Download Now: > http://activities.sugarlabs.org/downloads/file/28403/ruler-24.xo > > Release notes: > Add a custom units ruler. > > in setup.py it imports bundlebuilder from sugar.activity where as in Ruler-23 it is imported from sugar3.activity. Shouldn't this also be from sugar3.activity. I am experiencing errors with importing from sugar.activity in packaging. > > Sugar Labs Activities > http://activities.sugarlabs.org > > ___ > Sugar-devel mailing list > Sugar-devel@lists.sugarlabs.org > http://lists.sugarlabs.org/listinfo/sugar-devel > -- Best Regards, Kalpa Welivitigoda Junior Treasurer | Electrical Engineering Society Undergraduate | Department of Electrical Engineering University of Moratuwa Sri Lanka http://about.me/callkalpa ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] [PATCH 3/3] sdxo#2316: Browse don't remember the last zoom used. In the read_file and write_file method self.model.data['current_zoom_level'] is restored/written
Done it http://bugs.sugarlabs.org/attachment/ticket/4368/ On 01/04/2013 05:00 PM, Manuel Quiñones wrote: Looks like a nice enhacement. Can you add a ticket with type "enhacement" in our sugarlabs tracker, so we can track it? 2013/1/3 Ariel Calzada: --- webactivity.py | 10 ++ 1 file changed, 10 insertions(+) diff --git a/webactivity.py b/webactivity.py index fc60069..a94c7fa 100644 --- a/webactivity.py +++ b/webactivity.py @@ -426,6 +426,13 @@ class WebActivity(activity.Activity): tab_page.browser.grab_focus() self._tabbed_view.set_current_page(self.model.data['current_tab']) + +# zoom level +if 'current_zoom_level' in self.model.data: + self._tabbed_view.props.current_browser.set_zoom_level(self.model.data['current_zoom_level']) +else: + self._tabbed_view.props.current_browser.set_zoom_level(ZOOM_ORIGINAL) + elif self.metadata['mime_type'] == 'text/uri-list': data = self._get_data_from_file_path(file_path) uris = mime.split_uri_list(data) @@ -447,6 +454,9 @@ class WebActivity(activity.Activity): browser = self._tabbed_view.current_browser +# zoom level +self.model.data['current_zoom_level'] = browser.get_zoom_level() + if not self._jobject.metadata['title_set_by_user'] == '1': if browser.props.title is None: self.metadata['title'] = _('Untitled') -- 1.7.10.4 ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] [PATCH 1/3] Added proxy network support
Hi Manuel! Browse by default doesn't support http_proxy variable, that's why we made this patch. I would like to know if there are plans for supporting PAC with user/password ? Regards, ARIEL On 01/04/2013 04:56 PM, Manuel Quiñones wrote: 2013/1/3 Ariel Calzada: --- webactivity.py |5 + webactivity.py.orig | 669 Seems that you added a file by mistake. Can you explain the reasoning behind this patch? There is no commit message. In particular, how this differs from: http://wiki.sugarlabs.org/go/Features/Proxy_Settings I would like to see that feature pushed. Seems almost complete. +++ 2 files changed, 674 insertions(+) create mode 100644 webactivity.py.orig diff --git a/webactivity.py b/webactivity.py index 3c0d337..c5f13c1 100644 --- a/webactivity.py +++ b/webactivity.py @@ -159,6 +159,11 @@ class WebActivity(activity.Activity): session.set_property('ssl-use-system-ca-file', True) session.set_property('ssl-strict', False) +# Honor the http_proxy variable +if os.environ.get('http_proxy') is not None: +proxy_uri = Soup.URI.new(os.environ['http_proxy']) +session.set_property("proxy-uri",proxy_uri) + # By default, cookies are not stored persistently, we have to # add a cookie jar so that they get saved to disk. We use one # with a SQlite database: diff --git a/webactivity.py.orig b/webactivity.py.orig new file mode 100644 index 000..3c0d337 --- /dev/null +++ b/webactivity.py.orig @@ -0,0 +1,669 @@ +# Copyright (C) 2006, Red Hat, Inc. +# Copyright (C) 2009 Martin Langhoff, Simon Schampijer, Daniel Drake, +#Tomeu Vizoso +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +import logging +from gettext import gettext as _ +from gettext import ngettext +import os + +from gi.repository import GObject +GObject.threads_init() + +from gi.repository import Gtk +from gi.repository import Gdk +from gi.repository import GdkPixbuf +from gi.repository import WebKit +from gi.repository import Soup +from gi.repository import SoupGNOME + +import base64 +import time +import shutil +import sqlite3 +import json +from gi.repository import GConf +import locale +import cairo +import StringIO +from hashlib import sha1 + +from sugar3.activity import activity +from sugar3.graphics import style +import telepathy +import telepathy.client +from sugar3.presence import presenceservice +from sugar3.graphics.tray import HTray +from sugar3 import profile +from sugar3.graphics.alert import Alert +from sugar3.graphics.icon import Icon +from sugar3 import mime + +from sugar3.graphics.toolbarbox import ToolbarButton + +PROFILE_VERSION = 2 + +_profile_version = 0 +_profile_path = os.path.join(activity.get_activity_root(), 'data/gecko') +_version_file = os.path.join(_profile_path, 'version') +_cookies_db_path = os.path.join(_profile_path, 'cookies.sqlite') + +if os.path.exists(_version_file): +f = open(_version_file) +_profile_version = int(f.read()) +f.close() + +if _profile_version< PROFILE_VERSION: +if not os.path.exists(_profile_path): +os.mkdir(_profile_path) + +shutil.copy('cert8.db', _profile_path) +os.chmod(os.path.join(_profile_path, 'cert8.db'), 0660) + +f = open(_version_file, 'w') +f.write(str(PROFILE_VERSION)) +f.close() + + +def _seed_xs_cookie(cookie_jar): +"""Create a HTTP Cookie to authenticate with the Schoolserver. + +Do nothing if the laptop is not registered with Schoolserver, or +if the cookie already exists. + +""" +client = GConf.Client.get_default() +backup_url = client.get_string('/desktop/sugar/backup_url') +if backup_url == '': +_logger.debug('seed_xs_cookie: Not registered with Schoolserver') +return + +jabber_server = client.get_string( +'/desktop/sugar/collaboration/jabber_server') + +soup_uri = Soup.URI() +soup_uri.set_scheme('xmpp') +soup_uri.set_host(jabber_server) +soup_uri.set_path('/') +xs_cookie = cookie_jar.get_cookies(soup_uri, for_http=False) +if xs_cookie is not None: +_logger.debug('seed_xs_cookie: Cookie exists already') +return + +pubkey = profile.get_profile().pubkey +cookie_data = {'color': profile.get_col
[Sugar-devel] Buildbot improvements
Hello, while waiting for sugar to be branched, I worked a lot on buildbot. There are several improvements: * More reliable UI test. It's still failing randomly on the new Fedora 18 slaves (haven't debugged yet) but I haven't seen random failures on the other slaves in a while. * We have quick builds (incremental), which are run for every commit and full builds which are run once per day. * The ccache support plus some other optimizations improved full build times of almost 50%. * The testing branch is now running on its own instance on port 8081. This makes it possible to test buildbot itself before deploying and it allows to keep the configuration simpler. * We are integrating with the new buildbot multi codebase support, builds are made with the exact revision of the change rather then with the latest commit. This should make "blames" more reliable. * Finally I'm automating most of the setup/management of master and slaves using a fab script. Basically you just need to install a distro with sudo and some basic packages and the scripts take care of the rest. And you can easily run commands on multiple slaves. It was becoming a chore to manage eight slaves, it should be much better now. The README has some more detail: http://git.sugarlabs.org/sugar-buildbot/sugar-buildbot/blobs/master/README * I finished up F18 support hacking in a remote terminal from an iPad. It's pretty awesome that you can just rely on the buildbot to check that stuff is working as expected (or... can you? I haven't tried to run it on a real X server yet :p). -- Daniel Narvaez ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
[Sugar-devel] Is gabble not working correctly?
Hi All: I'm having some difficulties in having the XOs connect when booting. I can use the "register with schoolserver" method or populating collaboration server, which will cause the neighbourhood view to become populated until rebooted. Once rebooted the neighbourhood view doesn't become populated and the XO is running salut according to ps -A and netstat has no connection to the jabber server but salut is running. Can anybody else confirm this behaviour? Jerry ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] More new stuff in "Make Your Own Sugar Activities1"
Thanks a lot I will eat it :) 2013/1/7 James Cameron > Thanks Ignacio! (and James!) > > -- > James Cameron > http://quozl.linux.org.au/ > ___ > Sugar-devel mailing list > Sugar-devel@lists.sugarlabs.org > http://lists.sugarlabs.org/listinfo/sugar-devel > -- La Salvaje Esperanza Éramos dioses y nos volvieron esclavos. Éramos hijos del sol y nos consolaron con medallas de lata. Éramos poetas y nos pusieron a recitar oraciones pordioseras. Éramos felices y nos civilizaron. Quién refrescará la memoria de la tribu. Quién revivirá nuestros dioses. Que la salvaje esperanza siempre sea tuya, querida alma inamansable. -Gonzalo Arango- ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] More new stuff in "Make Your Own Sugar Activities1"
Thanks Ignacio! (and James!) -- James Cameron http://quozl.linux.org.au/ ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] More new stuff in "Make Your Own Sugar Activities1"
Link to book: http://en.flossmanuals.net/make-your-own-sugar-activities 2013/1/7 James Simmons > I just re-published the FLOSS Manual *Make Your Own Sugar Activities!* > Several people did updates this weekend. Lionel Laské wrote a new Guest > Chapter on* Developing Sugar Activities Using HTML5.* Daniel Francis put > the finishing touches on ***Making contributions to Sugar. *I even did > some revisions to* Setting Up a Sugar Development Environment.* And there > is more good stuff to come. We should have a chapter on using WebKit in > your Activities, and possibly one on using the accelerometer that newer > XO's have in your Activities. And of course I will bring all the chapters > I wrote up to date. > > All of this Activity has come from the Google Code-In (in Lionel's case > it was indirect, as he offered to help someone in GCI finish his chapter). > However, the book can use new content from authors of all ages. If you > have an idea for a Guest Chapter why not share it, or better still write > the chapter yourself? > > Thanks to everyone who has contributed to the manual. > > James Simmons > > > ___ > Sugar-devel mailing list > Sugar-devel@lists.sugarlabs.org > http://lists.sugarlabs.org/listinfo/sugar-devel > > -- Saludos Juan Ignacio Rodríguez *CeibalJAM!* *Somos Azucar* ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
[Sugar-devel] More new stuff in "Make Your Own Sugar Activities1"
I just re-published the FLOSS Manual *Make Your Own Sugar Activities!* Several people did updates this weekend. Lionel Laské wrote a new Guest Chapter on* Developing Sugar Activities Using HTML5.* Daniel Francis put the finishing touches on ***Making contributions to Sugar. *I even did some revisions to* Setting Up a Sugar Development Environment.* And there is more good stuff to come. We should have a chapter on using WebKit in your Activities, and possibly one on using the accelerometer that newer XO's have in your Activities. And of course I will bring all the chapters I wrote up to date. All of this Activity has come from the Google Code-In (in Lionel's case it was indirect, as he offered to help someone in GCI finish his chapter). However, the book can use new content from authors of all ages. If you have an idea for a Guest Chapter why not share it, or better still write the chapter yourself? Thanks to everyone who has contributed to the manual. James Simmons ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
[Sugar-devel] [ANNOUNCE] Sucrose-0.98 branched
Hi dev and localization teams, we have branched off all Sugar components to Sucrose-0.98. All but toolkit gtk2 that doesn't need to be branched. Browse was branched too. A new cycle begins! Regards, http://git.sugarlabs.org/sugar/mainline/commits/sucrose-0.98 http://git.sugarlabs.org/sugar-toolkit-gtk3/sugar-toolkit-gtk3/commits/sucrose-0.98 http://git.sugarlabs.org/sugar-artwork/mainline/commits/sucrose-0.98 http://git.sugarlabs.org/sugar-datastore/mainline/commits/sucrose-0.98 http://git.sugarlabs.org/browse/mainline/commits/sugar-0.98 -- .. manuq .. ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] [PATCH sugar-datastore] Drop test target
On 12/06/2012 11:08 AM, Daniel Narvaez wrote: From: Daniel Narvaez The tests was removed in f3f36629db33c15030c84fd9228c50b1d7fbab71 --- Makefile.am |4 1 file changed, 4 deletions(-) diff --git a/Makefile.am b/Makefile.am index bfebefe..5d03cee 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,7 +1,3 @@ ACLOCAL_AMFLAGS = -I m4 SUBDIRS = bin etc src - -test: - @cd tests - $(MAKE) -C tests test Pushed http://git.sugarlabs.org/sugar-datastore/mainline/commit/6c974ddb604f67d350e08a4a15547ea972e4efa7 Thanks, Simon ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] [PATCH sugar-datastore] Port to gi and gtk3 toolkit
On 11/13/2012 03:57 PM, Simon Schampijer wrote: Thanks Daniel for those patches! Like discussed on irc, I pushed the first two. The datastore port I moved to the next cycle. We can branch early and land it. Cheers, Simon Branched off and pushed, thanks. Simon ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] Stepping down as Sugar maintainer
Hi Sascha, I'll never forget how I got ripped apart in one of the first sugar-core patches I sent to sugar-devel, and I can't thank you enough for it! It's been a great experience learning from you and I wish you all the best in whatever you do next! Cheers, Anish On Sun, Jan 6, 2013 at 3:19 PM, Sascha Silbe wrote: > Hello everyone, > > I am stepping down as maintainer for Sugar and some related > services. This is mostly due to lack of time, but even if I had more of > that to spare for Sugar, the way I work is sufficiently different from > that of the most active contributors that I'd do more harm than good. > > For some time now, my business didn't have any Sugar-related contract, > so as an entrepreneur I can't afford investing time, effort or money > into Sugar. My spare time is pretty limited these days and I tend to > spend what's left of it on reflecting, relaxing and some minor non-Sugar > projects, so even as a volunteer I can't spend much on Sugar. > > However, I will continue using an XO as my primary laptop, so I may > contribute to some of the lower-level parts of the stack (powerd, > kernel, etc.) from time to time. I'll also continue working on some data > store stuff (gdatastore, datastore-fuse, etc.), but strictly outside of > Sugar as I wouldn't be able to hold your pace. > > It's been exciting times working with you and I've learned a lot. But > now it's time to move on and let younger folks take over. That seems to > have worked fine the past few months; hopefully it'll work out in the > long run as well. This side of the ocean, my current customers have come > to appreciate the way I work. And taking Sundays off for relaxing and > reflecting, I'm much more at ease. So everyone is better off now. > > So long and thanks for all the fish, > Sascha > > ___ > Sugar-devel mailing list > Sugar-devel@lists.sugarlabs.org > http://lists.sugarlabs.org/listinfo/sugar-devel > > -- Anish | an...@sugarlabs.org ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] Stepping down as Sugar maintainer
On 01/06/2013 09:19 PM, Sascha Silbe wrote: Hello everyone, I am stepping down as maintainer for Sugar and some related services. This is mostly due to lack of time, but even if I had more of that to spare for Sugar, the way I work is sufficiently different from that of the most active contributors that I'd do more harm than good. For some time now, my business didn't have any Sugar-related contract, so as an entrepreneur I can't afford investing time, effort or money into Sugar. My spare time is pretty limited these days and I tend to spend what's left of it on reflecting, relaxing and some minor non-Sugar projects, so even as a volunteer I can't spend much on Sugar. However, I will continue using an XO as my primary laptop, so I may contribute to some of the lower-level parts of the stack (powerd, kernel, etc.) from time to time. I'll also continue working on some data store stuff (gdatastore, datastore-fuse, etc.), but strictly outside of Sugar as I wouldn't be able to hold your pace. It's been exciting times working with you and I've learned a lot. But now it's time to move on and let younger folks take over. That seems to have worked fine the past few months; hopefully it'll work out in the long run as well. This side of the ocean, my current customers have come to appreciate the way I work. And taking Sundays off for relaxing and reflecting, I'm much more at ease. So everyone is better off now. So long and thanks for all the fish, Sascha Hi Sascha, Thanks for letting us know about your future availability. That is an important part to make sure that other people can fill in the gaps. Thanks for your contributions in the last years and good luck with your future projects. Regards, Simon ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] Stepping down as Sugar maintainer
Hi Sascha, thanks a lot for all your contributions and the extensive feedback (both in patch reviews and during discussions on the list or during events) which you have provided to this community in the past few years. Good luck in all your ongoing and future projects! Cheers, Christoph On Mon, Jan 7, 2013 at 2:16 AM, Gary Martin wrote: > Hi Sascha, > > On 6 Jan 2013, at 20:19, Sascha Silbe wrote: > > > Hello everyone, > > > > I am stepping down as maintainer for Sugar and some related > > services. This is mostly due to lack of time, but even if I had more of > > that to spare for Sugar, the way I work is sufficiently different from > > that of the most active contributors that I'd do more harm than good. > > > > For some time now, my business didn't have any Sugar-related contract, > > so as an entrepreneur I can't afford investing time, effort or money > > into Sugar. My spare time is pretty limited these days and I tend to > > spend what's left of it on reflecting, relaxing and some minor non-Sugar > > projects, so even as a volunteer I can't spend much on Sugar. > > > > However, I will continue using an XO as my primary laptop, so I may > > contribute to some of the lower-level parts of the stack (powerd, > > kernel, etc.) from time to time. I'll also continue working on some data > > store stuff (gdatastore, datastore-fuse, etc.), but strictly outside of > > Sugar as I wouldn't be able to hold your pace. > > > > It's been exciting times working with you and I've learned a lot. But > > now it's time to move on and let younger folks take over. That seems to > > have worked fine the past few months; hopefully it'll work out in the > > long run as well. This side of the ocean, my current customers have come > > to appreciate the way I work. And taking Sundays off for relaxing and > > reflecting, I'm much more at ease. So everyone is better off now. > > > > So long and thanks for all the fish, > > Just wanted to say many thanks for all your efforts ant contributions over > the years, and especially for your thorough and detailed patch reviews! I > know I picked up many hints and insights reading through them along the way. > > Best of success for your future projects and please do keep in contact > from time to time! > > Best Regards, > --Gary > > > Sascha > > ___ > > Sugar-devel mailing list > > Sugar-devel@lists.sugarlabs.org > > http://lists.sugarlabs.org/listinfo/sugar-devel > ___ > Sugar-devel mailing list > Sugar-devel@lists.sugarlabs.org > http://lists.sugarlabs.org/listinfo/sugar-devel > -- Christoph Derndorfer volunteer, OLPC (Austria) [www.olpc.at] editor, OLPC News [www.olpcnews.com] contributor, TechnikBasteln [www.technikbasteln.net] e-mail: christ...@derndorfer.eu ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel