Re: [Sugar-devel] [DESIGN] Reflect internet connectivity in the 'Network' frame icon

2011-02-15 Thread Sascha Silbe
Excerpts from Anish Mangal's message of Mon Feb 14 22:20:23 +0100 2011: Since this discussion has many different areas (Usage goals, Backend implementation, UI implementation) should we move this to a wiki page? This way, anyone replying to a specific point won't have to waste time filtering

Re: [Sugar-devel] [Dextrose] [DESIGN] Reflect internet connectivity in the 'Network' frame icon

2011-02-15 Thread Sascha Silbe
Excerpts from Gary Martin's message of Tue Feb 15 03:57:22 +0100 2011: [School server icon in Neighbourhood] +1 I've wanted to see this for a long time as well, [...] Care to do a series of mock-ups? Some random points that we'd need to think about are: * when should we show the icon? ** when

Re: [Sugar-devel] [PATCH] localization support for GNOME version

2011-02-15 Thread Walter Bender
On Tue, Feb 15, 2011 at 6:36 AM, Raul Gutierrez Segales raul.gutierrez.sega...@collabora.co.uk wrote: On Tue, 2011-02-15 at 06:31 -0500, Walter Bender wrote: Hmm. Inside Sugar, LANG is set to something that looks like this: es_PE.utf8 As is LANGUAGE. I skipped the call outside of Sugar and it

Re: [Sugar-devel] [Dextrose] [DESIGN] Reflect internet connectivity in the 'Network' frame icon

2011-02-15 Thread Martin Langhoff
On Mon, Feb 14, 2011 at 9:57 PM, Gary Martin garycmar...@googlemail.com wrote: Couldn't we use the presence service (or its equivalent)? I've always wanted to see a schoolserver icon in the mesh view... from which the user could (re-)register, initiate a backup/restore, open a browser on the

Re: [Sugar-devel] [DESIGN] Reflect internet connectivity in the 'Network' frame icon

2011-02-15 Thread Martin Langhoff
On Thu, Feb 10, 2011 at 10:46 AM, Anish Mangal an...@activitycentral.org wrote: Currently, the 'network' icon on the frame tells us whether we're connected to a network or not. Would it make sense for it to test for internet connectivity and maybe reflect that by displaying a small globe

Re: [Sugar-devel] [DESIGN] Reflect internet connectivity in the 'Network' frame icon

2011-02-15 Thread Anish Mangal
On Tue, Feb 15, 2011 at 10:57, Martin Langhoff martin.langh...@gmail.com wrote: On Thu, Feb 10, 2011 at 10:46 AM, Anish Mangal an...@activitycentral.org wrote: Currently, the 'network' icon on the frame tells us whether we're connected to a network or not. Would it make sense for it to test

[Sugar-devel] [ASLO] Release JAMedia-4

2011-02-15 Thread Sugar Labs Activities
Activity Homepage: http://activities.sugarlabs.org/addon/4355 Sugar Platform: 0.82 - 0.90 Download Now: http://activities.sugarlabs.org/downloads/file/27215/jamedia-4.xo Release notes: Sugar Labs Activities http://activities.sugarlabs.org ___

Re: [Sugar-devel] [PATCH sugar-datastore] don't choke if timestamp property is missing

2011-02-15 Thread Simon Schampijer
On 02/14/2011 03:52 PM, Sascha Silbe wrote: Excerpts from Simon Schampijer's message of Mon Feb 14 21:01:18 +0100 2011: So if the timestamp is missing we will create the entry with the current timestamp when we update_the_index. I guess there is no better timestamp we can set. Exactly. I

Re: [Sugar-devel] [PATCH sugar-datastore] don't choke if timestamp property is missing

2011-02-15 Thread Sascha Silbe
Excerpts from Simon Schampijer's message of Tue Feb 15 17:11:22 +0100 2011: Hmm, where does the ctime property actually comes from, is it a property of the old DS? Exactly. I think just doing the check as you have it and setting update_metadata to true should be enough. Good. I'll send

Re: [Sugar-devel] Concept Mapping Activity and Labyrith

2011-02-15 Thread Nagarjuna G
On Tue, Feb 15, 2011 at 3:40 AM, Frederick Grose fgr...@gmail.com wrote: Unconfirmed - New http://bugs.sugarlabs.org/ticket/2392 Thanks for contributing to Sugar! Thanks for pointing out. I looked at the above ticket. Data modelling example you gave requires Key:value pair support on the

Re: [Sugar-devel] [PATCH sugar-toolkit] sugar.activity.i18n: add pgettext()

2011-02-15 Thread Simon Schampijer
On 02/11/2011 02:22 PM, Sascha Silbe wrote: Python 2 will never have pgettext() [1], so we need to ship our own version. sugar.activity.i18n is the best place for that. [1] http://bugs.python.org/issue2504#msg122482 Hi Sascha, I think it makes sense to add a docstring that indicates what the

Re: [Sugar-devel] [PATCH sugar v2 0/2] Use pgettext() for Remove

2011-02-15 Thread Simon Schampijer
On 02/14/2011 02:02 PM, Sascha Silbe wrote: Excerpts from Simon Schampijer's message of Mon Feb 14 19:41:10 +0100 2011: so your patch 2/2 does handle a particular case for the word 'remove'. How do you want to identify the words that need a particular translation, this will be different for

Re: [Sugar-devel] Concept Mapping Activity and Labyrith

2011-02-15 Thread Nagarjuna G
On Tue, Feb 15, 2011 at 8:07 AM, Gary Martin garycmar...@googlemail.com wrote: On 14 Feb 2011, at 20:25, Simon Schampijer si...@schampijer.de wrote: On 02/14/2011 02:10 PM, Nagarjuna G wrote: This is a proposal for discussion to develop concept mapping mode within Labyrinth or as an

Re: [Sugar-devel] [PATCH sugar-toolkit] sugar.activity.i18n: add pgettext()

2011-02-15 Thread Sascha Silbe
Excerpts from Simon Schampijer's message of Tue Feb 15 19:00:34 +0100 2011: I think it makes sense to add a docstring that indicates what the method is doing and what the magic number is about, in the python3 patch I found: OK, will add it. If I understand correctly in the support landed in

Re: [Sugar-devel] [PATCH sugar-toolkit] sugar.activity.i18n: add pgettext()

2011-02-15 Thread Simon Schampijer
On 02/15/2011 01:22 PM, Sascha Silbe wrote: Excerpts from Simon Schampijer's message of Tue Feb 15 19:00:34 +0100 2011: I think it makes sense to add a docstring that indicates what the method is doing and what the magic number is about, in the python3 patch I found: OK, will add it. If I

[Sugar-devel] [PATCH sugar-datastore v2] don't choke if timestamp property is missing

2011-02-15 Thread Sascha Silbe
The timestamp property might be missing due to incomplete writes (out of power, system crash) or software bugs. Signed-off-by: Sascha Silbe si...@activitycentral.com --- v1-v2: ensure we update the metadata on disk src/carquinyol/datastore.py |3 +++ 1 files changed, 3 insertions(+), 0

[Sugar-devel] [ASLO] Release Read-88

2011-02-15 Thread Sugar Labs Activities
Activity Homepage: http://activities.sugarlabs.org/addon/4028 Sugar Platform: 0.90 - 0.90 Download Now: http://activities.sugarlabs.org/downloads/file/27218/read-88.xo Release notes: Restore epub files support. Sugar Labs Activities http://activities.sugarlabs.org

Re: [Sugar-devel] [PATCH sugar-datastore v2] don't choke if timestamp property is missing

2011-02-15 Thread Simon Schampijer
Looks good now, thanks. Signed-off-by: Simon Schampijer si...@laptop.org ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel

[Sugar-devel] [PATCH sugar-toolkit] fix whitespace mistake introduced by c7a80a1

2011-02-15 Thread Sascha Silbe
Signed-off-by: Sascha Silbe si...@activitycentral.com --- src/sugar/bundle/activitybundle.py |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/src/sugar/bundle/activitybundle.py b/src/sugar/bundle/activitybundle.py index 94c44b0..56c0487 100644 ---

[Sugar-devel] [PATCH sugar-toolkit v2] sugar.activity.i18n: add pgettext()

2011-02-15 Thread Sascha Silbe
Python 2 will never have pgettext() [1], so we need to ship our own version. sugar.activity.i18n is the best place for that. [1] http://bugs.python.org/issue2504#msg122482 Signed-off-by: Sascha Silbe si...@activitycentral.com --- v1-v2: add docstring and comment, msgid-message

Re: [Sugar-devel] [PATCH sugar-toolkit] Cursor moves to beginning while trying to edit activity instance name #2608

2011-02-15 Thread Sascha Silbe
Excerpts from Aleksey Lim's message of Mon Feb 14 23:23:25 +0100 2011: def __jobject_updated_cb(self, jobject): +prev_pos = self.entry.props.cursor_position self.entry.set_text(jobject['title']) +self.entry.set_position(prev_pos) The GTK documentation doesn't

Re: [Sugar-devel] [PATCH sugar-toolkit] sugar.activity.i18n: add pgettext()

2011-02-15 Thread Simon Schampijer
On 02/15/2011 01:37 PM, Simon Schampijer wrote: On 02/15/2011 01:22 PM, Sascha Silbe wrote: Excerpts from Simon Schampijer's message of Tue Feb 15 19:00:34 +0100 2011: I think it makes sense to add a docstring that indicates what the method is doing and what the magic number is about, in the

Re: [Sugar-devel] [Dextrose] [PATCH sugar-toolkit] Cursor moves to beginning while trying to edit activity instance name #2608

2011-02-15 Thread Bernie Innocenti
On Tue, 2011-02-15 at 21:00 +0100, Sascha Silbe wrote: Excerpts from Aleksey Lim's message of Mon Feb 14 23:23:25 +0100 2011: def __jobject_updated_cb(self, jobject): +prev_pos = self.entry.props.cursor_position self.entry.set_text(jobject['title']) +

Re: [Sugar-devel] [Dextrose] [PATCH sugar-toolkit] Cursor moves to beginning while trying to edit activity instance name #2608

2011-02-15 Thread Gonzalo Odiard
Is this useful for you? http://bugs.sugarlabs.org/attachment/ticket/1948/0001-Save-title-when-closing-1948.patch Gonzalo On Tue, Feb 15, 2011 at 5:19 PM, Bernie Innocenti ber...@codewiz.orgwrote: On Tue, 2011-02-15 at 21:00 +0100, Sascha Silbe wrote: Excerpts from Aleksey Lim's message of

Re: [Sugar-devel] [PATCH sugar-datastore v2] don't choke if timestamp property is missing

2011-02-15 Thread Sascha Silbe
Excerpts from Simon Schampijer's message of Tue Feb 15 19:45:54 +0100 2011: Looks good now, thanks. Pushed as 665dbc4 [1], thanks! Sascha [1] http://git.sugarlabs.org/sugar-datastore/mainline/commit/665dbc43edd33010508a2d173150cba7b36d3ea2 -- http://sascha.silbe.org/

Re: [Sugar-devel] [Dextrose] [PATCH sugar-toolkit] Cursor moves to beginning while trying to edit activity instance name #2608

2011-02-15 Thread Sascha Silbe
Excerpts from Bernie Innocenti's message of Tue Feb 15 21:19:57 +0100 2011: The above patch isn't sufficient in this race-condition between the user typing and the metadata update: even if we reset the cursor position to the right place, the text that we set back into the widget is likely to

Re: [Sugar-devel] [Dextrose] [PATCH sugar-toolkit] Cursor moves to beginning while trying to edit activity instance name #2608

2011-02-15 Thread Bernie Innocenti
On Tue, 2011-02-15 at 17:25 -0300, Gonzalo Odiard wrote: Is this useful for you? http://bugs.sugarlabs.org/attachment/ticket/1948/0001-Save-title-when-closing-1948.patch This should definitely work! Thanks... -- // Bernie Innocenti - http://codewiz.org/ \X/ Sugar Labs -

Re: [Sugar-devel] [Dextrose] [PATCH sugar-toolkit] Cursor moves to beginning while trying to edit activity instance name #2608

2011-02-15 Thread Bernie Innocenti
On Tue, 2011-02-15 at 21:34 +0100, Sascha Silbe wrote: Excerpts from Bernie Innocenti's message of Tue Feb 15 21:19:57 +0100 2011: The above patch isn't sufficient in this race-condition between the user typing and the metadata update: even if we reset the cursor position to the right

Re: [Sugar-devel] [PATCH sugar-toolkit v2] sugar.activity.i18n: add pgettext()

2011-02-15 Thread Sascha Silbe
Excerpts from Sascha Silbe's message of Tue Feb 15 20:49:10 +0100 2011: Python 2 will never have pgettext() [1], so we need to ship our own version. sugar.activity.i18n is the best place for that. Ack'ed by Simon on #sugar and pushed as 11bfce1 [1]. Sascha [1]

Re: [Sugar-devel] [PATCH sugar-toolkit] fix whitespace mistake introduced by c7a80a1

2011-02-15 Thread Sascha Silbe
Excerpts from Sascha Silbe's message of Tue Feb 15 20:47:53 +0100 2011: from sugar.bundle.bundleversion import InvalidVersionError + class ActivityBundle(Bundle): Ack'ed by Simon on #sugar and pushed as 9d45394 [1]. Sascha [1]

Re: [Sugar-devel] [PATCH sugar 1/2] recognise translations using pgettext

2011-02-15 Thread Sascha Silbe
Excerpts from Sascha Silbe's message of Fri Feb 11 20:24:23 +0100 2011: Since Python doesn't support pgettext, we need to teach xgettext to recognise it. Ack'ed by Simon on #sugar and pushed as bfb7922 [1]. Sascha [1]

Re: [Sugar-devel] [DESIGN] [PATCH sugar] Speaker frame device: pop up palette on left-click instead of toggling mute

2011-02-15 Thread Sascha Silbe
Excerpts from James Cameron's message of Mon Feb 14 10:29:12 +0100 2011: Reviewed-by: James Cameron qu...@laptop.org Thanks! The change was also agreed upon during the Design Team meeting on Sunday [1] so I now pushed it as 7b44b42 [2]. Sascha [1]

Re: [Sugar-devel] [DESIGN] Reflect internet connectivity in the 'Network' frame icon

2011-02-15 Thread James Cameron
On Tue, Feb 15, 2011 at 08:57:01AM -0500, Martin Langhoff wrote: Going back to your original post to note something important: these statuses aren't important _just_ to show in the UI. This should be a system status property that can be queried by activities and by cronjobs / cli utils. I

Re: [Sugar-devel] [DESIGN] Reflect internet connectivity in the 'Network' frame icon

2011-02-15 Thread Martin Langhoff
On Tue, Feb 15, 2011 at 6:37 PM, James Cameron qu...@laptop.org wrote: NetworkManager already has sufficient functionality for reporting the state of a network connection. No it doesn't; if it did I'd use it :-) If we know whether we can see the XS or the internet we can, for example - run a