Re: [Sugar-devel] [web-activity] functional tests and env.isStandalone's current implementation

2013-12-20 Thread Daniel Narvaez
Ouch! Now I see, I had no thought of this issue... Good find!

What about using the user agent in isStandalone instead of the protocol? We
can make the web activity and the sugar-web-test use two different,
recognizable user agents.

On Friday, 20 December 2013, Rogelio Mita wrote:


 2013/12/19 Daniel Narvaez dwnarv...@gmail.com javascript:_e({}, 'cvml',
 'dwnarv...@gmail.com');

 On 19 December 2013 21:48, Rogelio Mita 
 rogeliom...@activitycentral.comjavascript:_e({}, 'cvml', 
 'rogeliom...@activitycentral.com');
  wrote:

 All sugar-web's tests are running into activityweb container, using
 sugar-web-test activity, all url requests which they do, have http
 scheme, and our current implementation of isStandanlone makes check on the
 current scheme of the request given (isStandalone 
 methodhttps://github.com/sugarlabs/sugar-web/blob/master/env.js#L40),
 then...


 You mean activity scheme right?


 yes! When run karma tests, the scheme is http, is not activity




  functional tests believe are in standalone mode when they use
 isStandalone method. Mocking this method on unit tests is ok... but we
 think is not good idea mocking this on functional tests... or yes???


 Can you explain what you mean with functional tests? (perhaps just
 lacking terminology on my side).


 I mean integration testshttp://en.wikipedia.org/wiki/Integration_testing
  =)


 --
 Roger

 Activity Central http://activitycentral.com/



-- 
Daniel Narvaez
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] Sugarizer, a taste of Sugar on any device

2013-12-20 Thread Daniel Narvaez
Impressive!


On 20 December 2013 07:52, Lionel Laské lio...@olpc-france.org wrote:


 Hi all,

 I'm proud to announce the second version of my prototype of Sugar as a
 web page. This version now include the list view of the home, datastore
 handling, popup menu on activities, and journal view.

 I've decided to name it Sugarizer and package it as a dedicated web site:

 http://sugarizer.org

 You could access to Sugarizer from the web site or download the Android.

 To remind you the concept, Sugarizer reproduce main features of Sugar in
 HTML5/JavaScript. Sugarizer also expose these features to allow running of
 Sugar web activities wrote for Sugar 0.100. So all activities included in
 the Sugarizer package work in the same way on Sugar 0.100.

 Hope you'll enjoy it, it's my Christmas gift to the Sugar community :-)

 Best regards from France.

 Lionel.

 P.S.: Source code is available on https://github.com/llaske/Sugarizer



 ___
 Sugar-devel mailing list
 Sugar-devel@lists.sugarlabs.org
 http://lists.sugarlabs.org/listinfo/sugar-devel




-- 
Daniel Narvaez
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] [support-gang] Sugarizer, a taste of Sugar on any device

2013-12-20 Thread Gonzalo Odiard
Very nice!
Good work Lionel.

Gonzalo


On Fri, Dec 20, 2013 at 3:52 AM, Lionel Laské lio...@olpc-france.orgwrote:


 Hi all,

 I'm proud to announce the second version of my prototype of Sugar as a
 web page. This version now include the list view of the home, datastore
 handling, popup menu on activities, and journal view.

 I've decided to name it Sugarizer and package it as a dedicated web site:

 http://sugarizer.org

 You could access to Sugarizer from the web site or download the Android.

 To remind you the concept, Sugarizer reproduce main features of Sugar in
 HTML5/JavaScript. Sugarizer also expose these features to allow running of
 Sugar web activities wrote for Sugar 0.100. So all activities included in
 the Sugarizer package work in the same way on Sugar 0.100.

 Hope you'll enjoy it, it's my Christmas gift to the Sugar community :-)

 Best regards from France.

 Lionel.

 P.S.: Source code is available on https://github.com/llaske/Sugarizer



 ___
 support-gang mailing list
 support-g...@lists.laptop.org
 http://lists.laptop.org/listinfo/support-gang


___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] Trouble saving Write 94 in Fedora 20

2013-12-20 Thread Gonzalo Odiard
Surely a different issue.
You should look at the shell.log file to see if there are any clue about
collaboration.

Gonzalo


On Thu, Dec 19, 2013 at 8:07 PM, Iain Brown Douglas 
i...@browndouglas.plus.com wrote:

 On Thu, 2013-12-19 at 15:59 -0200, Gonzalo Odiard wrote:
  Hi Iain,
  Could you test Write from git https://git.sugarlabs.org/write
  and confirm if is working for you?
 
 Hi Gonzalo,

 Thank you for asking me to test.

 I tested it within Fedora20 TC5 - Write did Save correctly :),
 but now there is no collaboration (id est, no other avatars seen in F1).

 I do not perceive where the collaboration error came from.

 Iain
 
  Gonzalo
 
 
  On Mon, Nov 25, 2013 at 9:43 PM, Iain Brown Douglas
  i...@browndouglas.plus.com wrote:
  On Mon, 2013-11-25 at 21:18 +0100, Daniel Narvaez wrote:
   On 25 November 2013 20:11, Iain Brown Douglas
   i...@browndouglas.plus.com wrote:
   On Mon, 2013-11-25 at 16:35 -0200, Gonzalo Odiard
  wrote:
Looks like a crash in abiword when try to open the
  saved
   file.
Could you attach the document saved in the
  Journal,
  
  
   I guess my OP did not make it clear that I have
  never
   succeeded in
   saving *anything* in Write on this install.
  
   Write will perform as expected until I attempt to
  rename a
   file.
  
   Actually closing Write, with original file-name
  Write
   Activity is as
   expected, except that resume opens as an empty page.
  It has
   been
   intermittent whether an empty Write Activity is
  seen in the
   Journal.
  
  
   This is reproducable in sugar-build too now.
  
  
   Can you open a ticket about it please?
  
 
  OK, done, reference, Moderated Submission #407
 
  Iain
   ___
   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


[Sugar-devel] git sugarlabs is down

2013-12-20 Thread Gustavo Duarte
Hi guys,

Is git.sugarlabs.org service down ?

Somebody know something ?

Gustavo.
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] git sugarlabs is down

2013-12-20 Thread Gonzalo Odiard
Looks down.
cc: Bernie  Aleksey

Gonzalo


On Fri, Dec 20, 2013 at 9:04 AM, Gustavo Duarte gdua...@activitycentral.com
 wrote:

 Hi guys,

 Is git.sugarlabs.org service down ?

 Somebody know something ?

 Gustavo.

 ___
 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] Trouble saving Write 94 in Fedora 20

2013-12-20 Thread Iain Brown Douglas
On Fri, 2013-12-20 at 09:46 -0200, Gonzalo Odiard wrote:
 Surely a different issue.
 You should look at the shell.log file to see if there are any clue
 about collaboration.

 
 I do not perceive where the collaboration error came from.

== Just to side line this issue ==

What changed?

I performed an update, and installed git.

== My log ==

$ git clone git://git.sugarlabs.org/write/mainline.git
write
bash: git: command not found
# yum install git

Total download size: 16 M

$ git clone git://git.sugarlabs.org/write/mainline.git
write

No record of a restart.

I suppose it is acceptable that collaboration might fail, after a
significant update.

I have attached 2 shell logs from last night. 

== This morning ==

Other user avatars are now seen correctly in F1, but I do not see Write
put a collaboration icon in F1.

I have not yet had sufficient time to review the *actual* Write issues.
In short, Write saves correctly when closed from Stop button, but
collapses when asked to save to .txt or .pdf - to follow.

Iain

1387492547.801637 WARNING root: No Gtk.AccelGroup in the top level window.
1387492547.820904 WARNING root: No Gtk.AccelGroup in the top level window.
1387492549.509826 ERROR dbus.proxies: Introspect error on org.freedesktop.ohm:/org/freedesktop/ohm/Keystore: dbus.exceptions.DBusException: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.ohm was not provided by any .service files
1387492549.511654 ERROR root: Cannot unfreeze the DCON
1387492553.108755 WARNING root: No Gtk.AccelGroup in the top level window.
1387492553.141314 WARNING root: No Gtk.AccelGroup in the top level window.
1387492553.159280 WARNING root: No Gtk.AccelGroup in the top level window.
1387492553.181544 WARNING root: No Gtk.AccelGroup in the top level window.
1387492553.536152 ERROR root: Could not find any typelib for Maliit
/usr/lib/python2.7/site-packages/jarabe/journal/journalactivity.py:437: Warning: g_object_set_property: assertion 'G_IS_VALUE (value)' failed
  _journal.show()
/usr/lib/python2.7/site-packages/jarabe/journal/journalactivity.py:437: Warning: g_value_unset: assertion 'G_IS_VALUE (value)' failed
  _journal.show()
Traceback (most recent call last):
  File /usr/lib/python2.7/site-packages/jarabe/model/neighborhood.py, line 402, in __active_activity_changed_cb
connection = self._connection[CONNECTION_INTERFACE_BUDDY_INFO]
TypeError: 'NoneType' object has no attribute '__getitem__'
/usr/lib/python2.7/site-packages/jarabe/main.py:301: Warning: g_object_set_property: assertion 'G_IS_VALUE (value)' failed
  Gtk.main()
/usr/lib/python2.7/site-packages/jarabe/main.py:301: Warning: g_value_unset: assertion 'G_IS_VALUE (value)' failed
  Gtk.main()
1387492555.881948 WARNING root: _Account.__set_current_activity_cb
Traceback (most recent call last):
  File /usr/lib/python2.7/site-packages/jarabe/model/neighborhood.py, line 402, in __active_activity_changed_cb
connection = self._connection[CONNECTION_INTERFACE_BUDDY_INFO]
TypeError: 'NoneType' object has no attribute '__getitem__'
1387492575.357711 WARNING root: _Account.__set_current_activity_cb
1387493063.248399 WARNING root: No Gtk.AccelGroup in the top level window.
1387493063.259136 WARNING root: No Gtk.AccelGroup in the top level window.
1387493063.766402 ERROR root: Failed to register SecretAgent: org.freedesktop.NetworkManager.AgentManager.PermissionDenied: An agent with this ID is already registered for this user.
1387493063.907839 ERROR dbus.proxies: Introspect error on org.freedesktop.ohm:/org/freedesktop/ohm/Keystore: dbus.exceptions.DBusException: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.ohm was not provided by any .service files
1387493063.909680 ERROR root: Cannot unfreeze the DCON
1387493064.374231 WARNING root: No Gtk.AccelGroup in the top level window.
1387493064.380617 WARNING root: No Gtk.AccelGroup in the top level window.
1387493064.386642 WARNING root: No Gtk.AccelGroup in the top level window.
1387493064.392171 WARNING root: No Gtk.AccelGroup in the top level window.
1387493064.450174 ERROR root: Could not find any typelib for Maliit
/usr/lib/python2.7/site-packages/jarabe/journal/journalactivity.py:437: Warning: g_object_set_property: assertion 'G_IS_VALUE (value)' failed
  _journal.show()
/usr/lib/python2.7/site-packages/jarabe/journal/journalactivity.py:437: Warning: g_value_unset: assertion 'G_IS_VALUE (value)' failed
  _journal.show()
/usr/lib/python2.7/site-packages/jarabe/main.py:301: Warning: g_object_set_property: assertion 'G_IS_VALUE (value)' failed
  Gtk.main()
/usr/lib/python2.7/site-packages/jarabe/main.py:301: Warning: g_value_unset: assertion 'G_IS_VALUE (value)' failed
  Gtk.main()
1387493066.115329 WARNING root: 

Re: [Sugar-devel] Trouble saving Write 94 in Fedora 20

2013-12-20 Thread Iain Brown Douglas
On Thu, 2013-12-19 at 15:59 -0200, Gonzalo Odiard wrote:
 Hi Iain,
 Could you test Write from git https://git.sugarlabs.org/write
 and confirm if is working for you?
 
Testing environment:
Fedora-Live-Xfce-x86_64-20-TC5


In both a Sugar-session and sugar-runner, Write successfully saves and
reopens, when the it is closed with the Stop button.

Write will not Export, (ie Save As any of the four .pdf etc options)

I attach the last five logs and shell log.



== Collaboration in Write ==

I cannot define what is reproducible. Write sometimes puts a
collaboration icon in the F1 view. Collaboration is now seems flaky in
general on this machine.

Regards

Iain

 Gonzalo
 
 
 On Mon, Nov 25, 2013 at 9:43 PM, Iain Brown Douglas
 i...@browndouglas.plus.com wrote:
 On Mon, 2013-11-25 at 21:18 +0100, Daniel Narvaez wrote:
  On 25 November 2013 20:11, Iain Brown Douglas
  i...@browndouglas.plus.com wrote:
  On Mon, 2013-11-25 at 16:35 -0200, Gonzalo Odiard
 wrote:
   Looks like a crash in abiword when try to open the
 saved
  file.
   Could you attach the document saved in the
 Journal,
 
 
  I guess my OP did not make it clear that I have
 never
  succeeded in
  saving *anything* in Write on this install.
 
  Write will perform as expected until I attempt to
 rename a
  file.
 
  Actually closing Write, with original file-name
 Write
  Activity is as
  expected, except that resume opens as an empty page.
 It has
  been
  intermittent whether an empty Write Activity is
 seen in the
  Journal.
 
 
  This is reproducable in sugar-build too now.
 
 
  Can you open a ticket about it please?
 
 
 OK, done, reference, Moderated Submission #407
 
 Iain
  ___
  Sugar-devel mailing list
  Sugar-devel@lists.sugarlabs.org
  http://lists.sugarlabs.org/listinfo/sugar-devel
 
 
 
 
 

Unknown option -b
1387544249.706341 ERROR root: EXCEPTION: request-clear-area signal not available
1387544249.706567 ERROR root: EXCEPTION: unset-clear-area signal not available
1387544249.795869 WARNING root: No Gtk.AccelGroup in the top level window.
1387544249.796190 WARNING root: No Gtk.AccelGroup in the top level window.
1387544249.807493 WARNING root: No Gtk.AccelGroup in the top level window.
1387544249.807870 WARNING root: No Gtk.AccelGroup in the top level window.
1387544249.812505 WARNING root: No Gtk.AccelGroup in the top level window.
1387544249.914504 WARNING root: No Gtk.AccelGroup in the top level window.
1387544249.919010 WARNING root: No Gtk.AccelGroup in the top level window.
1387544249.927027 WARNING root: No Gtk.AccelGroup in the top level window.
1387544250.077239 WARNING root: No Gtk.AccelGroup in the top level window.
1387544250.079156 WARNING root: No Gtk.AccelGroup in the top level window.
1387544250.079404 WARNING root: No Gtk.AccelGroup in the top level window.
1387544250.079577 WARNING root: No Gtk.AccelGroup in the top level window.
1387544250.079758 WARNING root: No Gtk.AccelGroup in the top level window.
1387544250.079932 WARNING root: No Gtk.AccelGroup in the top level window.
1387544250.081580 WARNING root: No Gtk.AccelGroup in the top level window.
1387544250.085341 WARNING root: No Gtk.AccelGroup in the top level window.
1387544250.085763 WARNING root: No Gtk.AccelGroup in the top level window.
1387544250.085934 WARNING root: No Gtk.AccelGroup in the top level window.
1387544250.086105 WARNING root: No Gtk.AccelGroup in the top level window.
1387544250.088434 WARNING root: No Gtk.AccelGroup in the top level window.
1387544250.088729 WARNING root: No Gtk.AccelGroup in the top level window.
1387544250.088904 WARNING root: No Gtk.AccelGroup in the top level window.
1387544250.090372 WARNING root: No Gtk.AccelGroup in the top level window.
1387544250.090683 WARNING root: No Gtk.AccelGroup in the top level window.
1387544250.090859 WARNING root: No Gtk.AccelGroup in the top level window.
1387544250.096961 ERROR write-activity: We are creating an activity
/usr/lib64/python2.7/site-packages/gi/overrides/GObject.py:464: Warning: gsignal.c:2515: instance '0x2f24160' has no handler with id '1777'
  GObjectModule.signal_handler_block(_get_instance_for_signal(obj), handler_id)
/usr/lib64/python2.7/site-packages/gi/overrides/GObject.py:581: Warning: gsignal.c:2557: instance '0x2f24160' has no handler with id '1777'
  return func(*args, **kwargs)
1387544250.307729 ERROR write-activity: Loading keybindings
1387544250.531266 ERROR write-activity: use gst-plugins-espeak

Re: [Sugar-devel] Trouble saving Write 94 in Fedora 20

2013-12-20 Thread Daniel Narvaez
On 20 December 2013 14:29, Iain Brown Douglas i...@browndouglas.plus.comwrote:

 On Thu, 2013-12-19 at 15:59 -0200, Gonzalo Odiard wrote:
  Hi Iain,
  Could you test Write from git https://git.sugarlabs.org/write
  and confirm if is working for you?
 
 Testing environment:
 Fedora-Live-Xfce-x86_64-20-TC5


 In both a Sugar-session and sugar-runner, Write successfully saves and
 reopens, when the it is closed with the Stop button.

 Write will not Export, (ie Save As any of the four .pdf etc options)

 I attach the last five logs and shell log.


There seem to be nothing in the logs about this. Can you uncomment the
SUGAR_LOGGER_LEVEL line in ~/.sugar/default/debug, test export and send the
log?
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


[Sugar-devel] [ASLO] Release Turtle Blocks-195

2013-12-20 Thread Sugar Labs Activities
Activity Homepage:
http://activities.sugarlabs.org/addon/4027

Sugar Platform:
0.82 - 0.100

Download Now:
http://activities.sugarlabs.org/downloads/file/28852/turtleblocks-195.xo

Release notes:
195

ENHANCEMENTS:
* New translations

BUG FIX:
* Added missing parens for some binary operations in Python export
* Fixed positioning of help messages (#4679)



Sugar Labs Activities
http://activities.sugarlabs.org

___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


[Sugar-devel] [DESIGN] Enhancement: Add description in Journal Palette

2013-12-20 Thread Ignacio Rodríguez
Hi all.

I make a patch for #4686:

Enhancement: show object description in its palette
Found it in a design at the wiki:
​http://wiki.sugarlabs.org/go/File:Journal-04.jpeg
Making descriptions be shown upfront throughout the interface, would
increase the usefullness of the description box, and make objects more
discoverable.
Perhaps only a few lines of text would be shown, say 2, as it is only
supposed to be a preview of the description.


My final version:
http://sugarlabs.org/~ignacio/Archivos/MenuDescription.png

I attached the patch.

Greetings,
Ignacio
From 684d198a069f5b7d2685524550dbd6432d93976a Mon Sep 17 00:00:00 2001
From: Ignacio Rodriguez igna...@sugarlabs.org
Date: Fri, 20 Dec 2013 12:05:43 -0200
Subject: [PATCH] Add label in Journal Palette for entry description

---
 src/jarabe/journal/palettes.py | 23 +++
 1 file changed, 23 insertions(+)

diff --git a/src/jarabe/journal/palettes.py b/src/jarabe/journal/palettes.py
index 4311336..17364c6 100644
--- a/src/jarabe/journal/palettes.py
+++ b/src/jarabe/journal/palettes.py
@@ -25,6 +25,7 @@ from gi.repository import Gdk
 from gi.repository import GConf
 from gi.repository import Gio
 from gi.repository import GLib
+from gi.repository import Pango
 
 from sugar3.graphics import style
 from sugar3.graphics.palette import Palette
@@ -72,6 +73,28 @@ class ObjectPalette(Palette):
 Palette.__init__(self, primary_text=title,
  icon=activity_icon)
 
+if metadata.get('description', ''):
+label = Gtk.Label()
+label.set_max_width_chars(60)
+label.set_justify(Gtk.Justification.LEFT)
+label.set_ellipsize(Pango.EllipsizeMode.MIDDLE)
+
+description = str(metadata.get('description', ''))
+description = description.replace('\n', ' ')
+label.set_text(description)
+label.modify_fg(Gtk.StateType.INSENSITIVE,
+Gdk.color_parse('white'))
+
+item = Gtk.MenuItem()
+item.add(label)
+item.set_sensitive(False)
+self.menu.append(item)
+item.show_all()
+
+separator = Gtk.SeparatorMenuItem()
+self.menu.append(separator)
+separator.show()
+
 if misc.can_resume(metadata):
 if metadata.get('activity_id', ''):
 resume_label = _('Resume')
-- 
1.8.1.2

___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] [support-gang] Sugarizer, a taste of Sugar on any device

2013-12-20 Thread Bastien
Lionel Laské lio...@olpc-france.org writes:

 I've decided to name it Sugarizer and package it as a dedicated web
 site:

http://sugarizer.org

Nice!  Time to organize a small Sugar on the Web workshop in France
I guess :)

A happy xmas/new year to all of you,

-- 
 Bastien
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


[Sugar-devel] [ASLO] Release Turtle Art-195

2013-12-20 Thread Sugar Labs Activities
Activity Homepage:
http://activities.sugarlabs.org/addon/4298

Sugar Platform:
0.82 - 0.100

Download Now:
http://activities.sugarlabs.org/downloads/file/28853/turtle_art_mini-195.xo

Release notes:
195

Resync with Turtle Blocks 195



Sugar Labs Activities
http://activities.sugarlabs.org

___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] [web-activity] functional tests and env.isStandalone's current implementation

2013-12-20 Thread Rogelio Mita
2013/12/20 Daniel Narvaez dwnarv...@gmail.com

 What about using the user agent in isStandalone instead of the protocol?
 We can make the web activity and the sugar-web-test use two different,
 recognizable user agents.


sorry I don't understand how this will help us, the expected is that
sugar-web-test and a web activity running in sugar platform should have
same behavior, isStandalone? - false, right? or I think don't follow your
idea =)

In unit test is not a problem at all, we just mock spyOn(env,
isStandalone).andReturn(false) then we are in sugar mode, but integration
tests in some way, we should have a environment more close to actual,
isStandalone should return false without necessity of mocking him, IMHO.

-- 
Roger

Activity Central http://activitycentral.com/
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] [DESIGN] Enhancement: Add description in Journal Palette

2013-12-20 Thread Gonzalo Odiard
Why there are multiple separators (horizontal lines) around the description?
I really don't know if is good continue putting information in the palette,
it's already crowded.

Gonzalo



On Fri, Dec 20, 2013 at 11:13 AM, Ignacio Rodríguez nachoe...@gmail.comwrote:

 Hi all.

 I make a patch for #4686:
 
 Enhancement: show object description in its palette
 Found it in a design at the wiki:
 http://wiki.sugarlabs.org/go/File:Journal-04.jpeg
 Making descriptions be shown upfront throughout the interface, would
 increase the usefullness of the description box, and make objects more
 discoverable.
 Perhaps only a few lines of text would be shown, say 2, as it is only
 supposed to be a preview of the description.
 

 My final version:
 http://sugarlabs.org/~ignacio/Archivos/MenuDescription.png

 I attached the patch.

 Greetings,
 Ignacio

 ___
 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] [DESIGN] Enhancement: Add description in Journal Palette

2013-12-20 Thread Ignacio Rodríguez
Why there are multiple separators (horizontal lines) around the description?

Look at sugar-build bug :P
In Xo-1.75 works perfect!

2013/12/20, Gonzalo Odiard gonz...@laptop.org:
 Why there are multiple separators (horizontal lines) around the
 description?
 I really don't know if is good continue putting information in the palette,
 it's already crowded.

 Gonzalo



 On Fri, Dec 20, 2013 at 11:13 AM, Ignacio Rodríguez
 nachoe...@gmail.comwrote:

 Hi all.

 I make a patch for #4686:
 
 Enhancement: show object description in its palette
 Found it in a design at the wiki:
 http://wiki.sugarlabs.org/go/File:Journal-04.jpeg
 Making descriptions be shown upfront throughout the interface, would
 increase the usefullness of the description box, and make objects more
 discoverable.
 Perhaps only a few lines of text would be shown, say 2, as it is only
 supposed to be a preview of the description.
 

 My final version:
 http://sugarlabs.org/~ignacio/Archivos/MenuDescription.png

 I attached the patch.

 Greetings,
 Ignacio

 ___
 Sugar-devel mailing list
 Sugar-devel@lists.sugarlabs.org
 http://lists.sugarlabs.org/listinfo/sugar-devel





-- 
Saludos.
Ignacio Rodríguez
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] Trouble saving Write 94 in Fedora 20

2013-12-20 Thread Iain Brown Douglas
On Fri, 2013-12-20 at 14:36 +0100, Daniel Narvaez wrote:
 On 20 December 2013 14:29, Iain Brown Douglas
 i...@browndouglas.plus.com wrote:
 On Thu, 2013-12-19 at 15:59 -0200, Gonzalo Odiard wrote:
 
  Hi Iain,
  Could you test Write from git
 https://git.sugarlabs.org/write
  and confirm if is working for you?
 
 
 Testing environment:
 Fedora-Live-Xfce-x86_64-20-TC5
 
 
 In both a Sugar-session and sugar-runner, Write successfully
 saves and
 reopens, when the it is closed with the Stop button.
 
 Write will not Export, (ie Save As any of the four .pdf etc
 options)
 
 I attach the last five logs and shell log.
 
 
 There seem to be nothing in the logs about this. Can you uncomment the
 SUGAR_LOGGER_LEVEL line in ~/.sugar/default/debug, test export and
 send the log?


Uncommented, then I performed a regular successful, edit, Stop and
reopen.

Then edit, export as .pdf, and Write collapsed.

The two logs attached.

Iain

 ___
 Sugar-devel mailing list
 Sugar-devel@lists.sugarlabs.org
 http://lists.sugarlabs.org/listinfo/sugar-devel


** (sugar-activity:1701): WARNING **: Couldn't register with accessibility bus: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
Unknown option -b
1387549878.789088 DEBUG root: datastore.get
1387549878.812100 DEBUG root: Calling GetActivity on /org/freedesktop/Telepathy/Account/salut/local_xmpp/account0
1387549878.819260 DEBUG root: There's no shared activity with the id 8053e6b87aaf87290b23307c3dca7838436b7a40
1387549878.819467 DEBUG root: *** Act 8053e6b87aaf87290b23307c3dca7838436b7a40, mesh instance None, scope public
1387549878.819564 DEBUG root: *** Act 8053e6b87aaf87290b23307c3dca7838436b7a40 no existing mesh instance, but used to be shared, will share
1387549878.819661 DEBUG root: Requesting public share of activity 8053e6b87aaf87290b23307c3dca7838436b7a40.
1387549878.821043 ERROR root: EXCEPTION: request-clear-area signal not available
1387549878.821236 ERROR root: EXCEPTION: unset-clear-area signal not available
1387549878.909518 WARNING root: No Gtk.AccelGroup in the top level window.
1387549878.909874 WARNING root: No Gtk.AccelGroup in the top level window.
1387549878.914472 WARNING root: No Gtk.AccelGroup in the top level window.
1387549878.914852 WARNING root: No Gtk.AccelGroup in the top level window.
1387549878.923126 WARNING root: No Gtk.AccelGroup in the top level window.
1387549879.016831 WARNING root: No Gtk.AccelGroup in the top level window.
1387549879.021414 WARNING root: No Gtk.AccelGroup in the top level window.
1387549879.031852 WARNING root: No Gtk.AccelGroup in the top level window.
1387549879.171857 WARNING root: No Gtk.AccelGroup in the top level window.
1387549879.173769 WARNING root: No Gtk.AccelGroup in the top level window.
1387549879.174038 WARNING root: No Gtk.AccelGroup in the top level window.
1387549879.174214 WARNING root: No Gtk.AccelGroup in the top level window.
1387549879.174359 WARNING root: No Gtk.AccelGroup in the top level window.
1387549879.174524 WARNING root: No Gtk.AccelGroup in the top level window.
1387549879.176264 WARNING root: No Gtk.AccelGroup in the top level window.
1387549879.176503 WARNING root: No Gtk.AccelGroup in the top level window.
1387549879.176674 WARNING root: No Gtk.AccelGroup in the top level window.
1387549879.176877 WARNING root: No Gtk.AccelGroup in the top level window.
1387549879.177047 WARNING root: No Gtk.AccelGroup in the top level window.
1387549879.179365 WARNING root: No Gtk.AccelGroup in the top level window.
1387549879.179630 WARNING root: No Gtk.AccelGroup in the top level window.
1387549879.179837 WARNING root: No Gtk.AccelGroup in the top level window.
1387549879.184852 WARNING root: No Gtk.AccelGroup in the top level window.
1387549879.185121 WARNING root: No Gtk.AccelGroup in the top level window.
1387549879.185289 WARNING root: No Gtk.AccelGroup in the top level window.
1387549879.191394 ERROR write-activity: We are creating an activity
1387549879.279879 DEBUG root: Abiword font size changed to 12.0
/usr/lib64/python2.7/site-packages/gi/overrides/GObject.py:464: Warning: gsignal.c:2515: instance '0x323e150' has no handler with id '1779'
  GObjectModule.signal_handler_block(_get_instance_for_signal(obj), handler_id)
1387549879.282214 DEBUG root: Abiword font changed to Times New Roman
1387549879.282733 DEBUG root: On abi style-name prop='Normal'
1387549879.283053 DEBUG root: On abi style-name prop='Normal'
1387549879.284318 DEBUG root: On abi left-align prop=True
/usr/lib64/python2.7/site-packages/gi/overrides/GObject.py:581: Warning: gsignal.c:2557: instance '0x323e150' has no handler with id '1779'
  return 

Re: [Sugar-devel] Trouble saving Write 94 in Fedora 20

2013-12-20 Thread Gonzalo Odiard
I have a fix for Write crash on export to pdf (waiting git.sl.o return to
the live to push it)

Gonzalo


On Fri, Dec 20, 2013 at 11:46 AM, Iain Brown Douglas 
i...@browndouglas.plus.com wrote:

 On Fri, 2013-12-20 at 14:36 +0100, Daniel Narvaez wrote:
  On 20 December 2013 14:29, Iain Brown Douglas
  i...@browndouglas.plus.com wrote:
  On Thu, 2013-12-19 at 15:59 -0200, Gonzalo Odiard wrote:
 
   Hi Iain,
   Could you test Write from git
  https://git.sugarlabs.org/write
   and confirm if is working for you?
  
 
  Testing environment:
  Fedora-Live-Xfce-x86_64-20-TC5
 
 
  In both a Sugar-session and sugar-runner, Write successfully
  saves and
  reopens, when the it is closed with the Stop button.
 
  Write will not Export, (ie Save As any of the four .pdf etc
  options)
 
  I attach the last five logs and shell log.
 
 
  There seem to be nothing in the logs about this. Can you uncomment the
  SUGAR_LOGGER_LEVEL line in ~/.sugar/default/debug, test export and
  send the log?


 Uncommented, then I performed a regular successful, edit, Stop and
 reopen.

 Then edit, export as .pdf, and Write collapsed.

 The two logs attached.

 Iain

  ___
  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] [web-activity] functional tests and env.isStandalone's current implementation

2013-12-20 Thread Rogelio Mita
ok!, I understand you now, yes, can work using user agent


2013/12/20 Rogelio Mita rogeliom...@activitycentral.com


 2013/12/20 Daniel Narvaez dwnarv...@gmail.com

 What about using the user agent in isStandalone instead of the protocol?
 We can make the web activity and the sugar-web-test use two different,
 recognizable user agents.


 sorry I don't understand how this will help us, the expected is that
 sugar-web-test and a web activity running in sugar platform should have
 same behavior, isStandalone? - false, right? or I think don't follow your
 idea =)

 In unit test is not a problem at all, we just mock spyOn(env,
 isStandalone).andReturn(false) then we are in sugar mode, but integration
 tests in some way, we should have a environment more close to actual,
 isStandalone should return false without necessity of mocking him, IMHO.

 --
 Roger

 Activity Central http://activitycentral.com/




-- 
Roger

Activity Central http://activitycentral.com/
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] [web-activity] functional tests and env.isStandalone's current implementation

2013-12-20 Thread Code Raguet
On Fri, Dec 20, 2013 at 6:04 AM, Daniel Narvaez dwnarv...@gmail.com wrote:

 What about using the user agent in isStandalone instead of the protocol?
 We can make the web activity and the sugar-web-test use two different,
 recognizable user agents.


I like it

Other approach may be registering an acticity scheme in sugar-web-test
that (internaly) replaces de request.uri with http.
But I don know if this is possible... (I'm a newbie with webkit)


On Fri, Dec 20, 2013 at 12:42 PM, Code Raguet ignacio.c...@gmail.comwrote:


 On Fri, Dec 20, 2013 at 6:04 AM, Daniel Narvaez dwnarv...@gmail.comwrote:

 What about using the user agent in isStandalone instead of the protocol?
 We can make the web activity and the sugar-web-test use two different,
 recognizable user agents.


 I like it

 Other approach may be registering an acticity scheme in sugar-web-test
 that (internaly) replaces de request.uri with http.
 But I don know if this is possible... (I'm a newbie with webkit)

___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] [sugar-web] do webkit frames run on different threads?

2013-12-20 Thread Code Raguet

 We should not set window.top.sugar = {} from the javascript side. Instead
 we should if isStandalone callback({}).

yes, we are on it


My point in this thread is:

*should we develop thread-safe code when handling window.top props???*

chrome: not mandatory
opera: yes, we should
webkit:   ??




On Thu, Dec 19, 2013 at 11:08 PM, Rogelio Mita 
rogeliom...@activitycentral.com wrote:


 2013/12/19 Daniel Narvaez dwnarv...@gmail.com

 This code in getEnvironment is wrong, just a thinko by me.

 We should not set window.top.sugar = {} from the javascript side. Instead
 we should if isStandalone callback({}).


 This is related with [web-activity] functional tests and
 env.isStandalone's current implementation email, we were trying to do
 this, and we find with this questions...


 --
 Roger

 Activity Central http://activitycentral.com/

___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] [support-gang] Sugarizer, a taste of Sugar on any device

2013-12-20 Thread Caryl Bigenho
Very nice! I tried them all. The little animation tutorial for the Gears 
Activity was especially nice. This is a great start on something a lot of us 
have been talking about. Having it be web/server based is a great solution to a 
lot of problems. 
How difficult will it be to add things like Turtle Blocks, FotoToon, Labyrinth 
and the like? These are the kind of Activities that will make it really useful 
for learning. Things that can be used for a lot of different subjects and 
levels would be the most useful. As someone said on another thread, we need to 
do a survey to find out what Activities are the most helpful for learning. For 
example...
A few years ago the teachers in Uruguay were all raving about Labyrintino. 
Later, when some of us were there for Ciebal JAM, I asked an 8-year-old boy 
what his favorite Activity was… guess what? Labyrintino! This mind mapping tool 
helps students organize information and present it in ways that are easy to see 
and understand. One large bulletin board at a school there was covered with 
print-outs of student made Labyrinth projects. You could see that a lot of 
higher-level learning was taking place.
Does anyone want to join me in a survey project? We can keep it simple. I can 
put together a few easy questions. We could use Google Docs to keep track of 
our findings. I can work on getting responses in English and Spanish. Others 
can fill in with French and other languages. Any takers?
So…. thanks for doing this Lionel! 
Caryl

From: t...@timmoody.com
To: sugar-devel@lists.sugarlabs.org; i...@lists.sugarlabs.org; 
support-g...@lists.laptop.org; xsce-de...@googlegroups.com
Date: Fri, 20 Dec 2013 09:31:04 -0500
Subject: Re: [support-gang] Sugarizer, a taste of Sugar on any device





This sounds like something that should be on the School Server.
 
Tim


 

From: Lionel Laské 
Sent: Friday, December 20, 2013 1:52 AM
To: Sugar-dev Devel ; i...@lists.sugarlabs.org ; support-g...@lists.laptop.org 

Subject: [support-gang] Sugarizer, a taste of Sugar on any 
device
 





 Hi all,

I'm proud to announce the second version 
of my prototype of Sugar as a web page. This version now include the list 
view 
of the home, datastore handling, popup menu on activities, and journal 
view.

 
I've decided to name it Sugarizer and package it as a dedicated web 
site:


http://sugarizer.org

You could access to Sugarizer from 
the web site or download the Android.


To remind you the concept, Sugarizer reproduce main features of Sugar in 
HTML5/JavaScript. Sugarizer also expose these features to allow running of 
Sugar 
web activities wrote for Sugar 0.100. So all activities included in the 
Sugarizer package work in the same way on Sugar 0.100.


Hope you'll enjoy it, it's my Christmas gift to the Sugar community 
:-)


Best regards from France.



Lionel.


P.S.: Source code is available on https://github.com/llaske/Sugarizer







___
support-gang mailing 
list
support-g...@lists.laptop.org
http://lists.laptop.org/listinfo/support-gang


___
support-gang mailing list
support-g...@lists.laptop.org
http://lists.laptop.org/listinfo/support-gang   
  ___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] [support-gang] Sugarizer, a taste of Sugar on any device

2013-12-20 Thread Sameer Verma
On Thu, Dec 19, 2013 at 10:52 PM, Lionel Laské lio...@olpc-france.org wrote:

 Hi all,

 I'm proud to announce the second version of my prototype of Sugar as a web
 page. This version now include the list view of the home, datastore
 handling, popup menu on activities, and journal view.

 I've decided to name it Sugarizer and package it as a dedicated web site:

 http://sugarizer.org

 You could access to Sugarizer from the web site or download the Android.

 To remind you the concept, Sugarizer reproduce main features of Sugar in
 HTML5/JavaScript. Sugarizer also expose these features to allow running of
 Sugar web activities wrote for Sugar 0.100. So all activities included in
 the Sugarizer package work in the same way on Sugar 0.100.

 Hope you'll enjoy it, it's my Christmas gift to the Sugar community :-)

 Best regards from France.

 Lionel.

 P.S.: Source code is available on https://github.com/llaske/Sugarizer



 ___
 support-gang mailing list
 support-g...@lists.laptop.org
 http://lists.laptop.org/listinfo/support-gang


Installed the Android APK on the Android build for the XO-4 (which was
announced yesterday as well). It's all very slow (video drivers I
suppose) but it works. The Gears Activity works. It also shows up in
the Journal.

Very cool!

Sameer
-- 
Sameer Verma, Ph.D.
Professor, Information Systems
San Francisco State University
http://verma.sfsu.edu/
http://commons.sfsu.edu/
http://olpcsf.org/
http://olpcjamaica.org.jm/
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] [DESIGN] Enhancement: Add description in Journal Palette

2013-12-20 Thread Walter Bender
On Fri, Dec 20, 2013 at 9:37 AM, Gonzalo Odiard gonz...@laptop.org wrote:
 Why there are multiple separators (horizontal lines) around the description?
 I really don't know if is good continue putting information in the palette,
 it's already crowded.

 Gonzalo



 On Fri, Dec 20, 2013 at 11:13 AM, Ignacio Rodríguez nachoe...@gmail.com
 wrote:

 Hi all.

 I make a patch for #4686:
 
 Enhancement: show object description in its palette
 Found it in a design at the wiki:
 http://wiki.sugarlabs.org/go/File:Journal-04.jpeg
 Making descriptions be shown upfront throughout the interface, would
 increase the usefullness of the description box, and make objects more
 discoverable.
 Perhaps only a few lines of text would be shown, say 2, as it is only
 supposed to be a preview of the description.
 

 My final version:
 http://sugarlabs.org/~ignacio/Archivos/MenuDescription.png

 I attached the patch.

 Greetings,
 Ignacio

 ___
 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


(1) I think there is an if missing from Ignacio's patch that was there
in earlier versions. If there is no desc. then no new spacers.
(2) While I agree that the palette is very full, this addition IMHO,
adds value in two ways: it is real information and it is one more
encouragement to use the description mechanism, which as pedagogical
value.

regards.

-walter

-- 
Walter Bender
Sugar Labs
http://www.sugarlabs.org
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] git sugarlabs is down

2013-12-20 Thread Bernie Innocenti
Aleksey notified me and I got the machine back online.

We couldn't determine the root cause of the crash, and justice has been
running for about two years without a glitch. If it ever happens again,
we'll transfer the hard drives to our hot spare freedom.

I'll be on the west coast until Monday, but Dogi, Walter Bender and Luke
Faraone should have access to the server room at the Media Lab so we
should be covered.

On 12/20/13 04:10, Gonzalo Odiard wrote:
 Looks down.
 cc: Bernie  Aleksey
 
 Gonzalo
 
 
 On Fri, Dec 20, 2013 at 9:04 AM, Gustavo Duarte
 gdua...@activitycentral.com mailto:gdua...@activitycentral.com wrote:
 
 Hi guys,
 
 Is git.sugarlabs.org http://git.sugarlabs.org service down ? 
 
 Somebody know something ?
 
 Gustavo.
 
 ___
 Sugar-devel mailing list
 Sugar-devel@lists.sugarlabs.org mailto:Sugar-devel@lists.sugarlabs.org
 http://lists.sugarlabs.org/listinfo/sugar-devel
 
 


-- 
 _ // Bernie Innocenti
 \X/  http://codewiz.org
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] git sugarlabs is down

2013-12-20 Thread Gonzalo Odiard
Thanks!


On Fri, Dec 20, 2013 at 2:24 PM, Bernie Innocenti ber...@codewiz.orgwrote:

 Aleksey notified me and I got the machine back online.

 We couldn't determine the root cause of the crash, and justice has been
 running for about two years without a glitch. If it ever happens again,
 we'll transfer the hard drives to our hot spare freedom.

 I'll be on the west coast until Monday, but Dogi, Walter Bender and Luke
 Faraone should have access to the server room at the Media Lab so we
 should be covered.

 On 12/20/13 04:10, Gonzalo Odiard wrote:
  Looks down.
  cc: Bernie  Aleksey
 
  Gonzalo
 
 
  On Fri, Dec 20, 2013 at 9:04 AM, Gustavo Duarte
  gdua...@activitycentral.com mailto:gdua...@activitycentral.com
 wrote:
 
  Hi guys,
 
  Is git.sugarlabs.org http://git.sugarlabs.org service down ?
 
  Somebody know something ?
 
  Gustavo.
 
  ___
  Sugar-devel mailing list
  Sugar-devel@lists.sugarlabs.org mailto:
 Sugar-devel@lists.sugarlabs.org
  http://lists.sugarlabs.org/listinfo/sugar-devel
 
 


 --
  _ // Bernie Innocenti
  \X/  http://codewiz.org

___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] git sugarlabs is down

2013-12-20 Thread Alan Jhonn Aguiar Schwyn
Thanks!!

 Date: Fri, 20 Dec 2013 09:24:54 -0800
 From: ber...@codewiz.org
 To: gonz...@laptop.org; gdua...@activitycentral.com
 CC: alsr...@sugarlabs.org; sugar-devel@lists.sugarlabs.org
 Subject: Re: [Sugar-devel] git sugarlabs is down
 
 Aleksey notified me and I got the machine back online.
 
 We couldn't determine the root cause of the crash, and justice has been
 running for about two years without a glitch. If it ever happens again,
 we'll transfer the hard drives to our hot spare freedom.
 
 I'll be on the west coast until Monday, but Dogi, Walter Bender and Luke
 Faraone should have access to the server room at the Media Lab so we
 should be covered.
 
 On 12/20/13 04:10, Gonzalo Odiard wrote:
  Looks down.
  cc: Bernie  Aleksey
  
  Gonzalo
  
  
  On Fri, Dec 20, 2013 at 9:04 AM, Gustavo Duarte
  gdua...@activitycentral.com mailto:gdua...@activitycentral.com wrote:
  
  Hi guys,
  
  Is git.sugarlabs.org http://git.sugarlabs.org service down ? 
  
  Somebody know something ?
  
  Gustavo.
  
  ___
  Sugar-devel mailing list
  Sugar-devel@lists.sugarlabs.org mailto:Sugar-devel@lists.sugarlabs.org
  http://lists.sugarlabs.org/listinfo/sugar-devel
  
  
 
 
 -- 
  _ // Bernie Innocenti
  \X/  http://codewiz.org
 ___
 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] Trouble saving Write 94 in Fedora 20

2013-12-20 Thread Gonzalo Odiard
Pushed the change, Iain could you test save as (PDF, Text...) again?
Thanks

Gonzalo


On Fri, Dec 20, 2013 at 12:10 PM, Gonzalo Odiard gonz...@laptop.org wrote:

 I have a fix for Write crash on export to pdf (waiting git.sl.o return to
 the live to push it)

 Gonzalo


 On Fri, Dec 20, 2013 at 11:46 AM, Iain Brown Douglas 
 i...@browndouglas.plus.com wrote:

 On Fri, 2013-12-20 at 14:36 +0100, Daniel Narvaez wrote:
  On 20 December 2013 14:29, Iain Brown Douglas
  i...@browndouglas.plus.com wrote:
  On Thu, 2013-12-19 at 15:59 -0200, Gonzalo Odiard wrote:
 
   Hi Iain,
   Could you test Write from git
  https://git.sugarlabs.org/write
   and confirm if is working for you?
  
 
  Testing environment:
  Fedora-Live-Xfce-x86_64-20-TC5
 
 
  In both a Sugar-session and sugar-runner, Write successfully
  saves and
  reopens, when the it is closed with the Stop button.
 
  Write will not Export, (ie Save As any of the four .pdf etc
  options)
 
  I attach the last five logs and shell log.
 
 
  There seem to be nothing in the logs about this. Can you uncomment the
  SUGAR_LOGGER_LEVEL line in ~/.sugar/default/debug, test export and
  send the log?


 Uncommented, then I performed a regular successful, edit, Stop and
 reopen.

 Then edit, export as .pdf, and Write collapsed.

 The two logs attached.

 Iain

  ___
  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] [web-activity] functional tests and env.isStandalone's current implementation

2013-12-20 Thread Daniel Narvaez
On 20 December 2013 16:42, Code Raguet ignacio.c...@gmail.com wrote:


 On Fri, Dec 20, 2013 at 6:04 AM, Daniel Narvaez dwnarv...@gmail.comwrote:

 What about using the user agent in isStandalone instead of the protocol?
 We can make the web activity and the sugar-web-test use two different,
 recognizable user agents.


 I like it

 Other approach may be registering an acticity scheme in sugar-web-test
 that (internaly) replaces de request.uri with http.
 But I don know if this is possible... (I'm a newbie with webkit)


It should be possible but not as easy as tweaking a flag or something like
that. You would need to download from http using libsoup or something and
pipe data into the custom protocol stream.
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] [sugar-web] do webkit frames run on different threads?

2013-12-20 Thread Daniel Narvaez
On 20 December 2013 16:54, Code Raguet irag...@activitycentral.com wrote:

 We should not set window.top.sugar = {} from the javascript side. Instead
 we should if isStandalone callback({}).

 yes, we are on it


 My point in this thread is:

 *should we develop thread-safe code when handling window.top props???*

 chrome: not mandatory


But likely to be mandatory in the not too distant future.


 opera: yes, we should
 webkit:   ??


I suspect it's not mandatory at the moment, but I don't really know for
sure.


I would probably try to write thread-safe code, if we run into some
instance where that's very problematic we could reach out to the webkit
developers and find out for sure.
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


[Sugar-devel] [DESIGN] Add prelight to frame icons

2013-12-20 Thread Ignacio Rodríguez
Hi,

I make a patch for #3293,
My patch replace 'Gtk.ToolItem' by 'ToolButton', 'Icon' by 'PulsingIcon'

About 'PulsingIcon' I recommend move it to sugar-toolkit, now are in sugar-core.
Now: from jarabe.view.pulsingicon import PulsingIcon

I recommend something like this:
from sugar3.graphics.icon import PulsingIcon

If you see the PulsingIcon code, this inherited from 'Icon'
class PulsingIcon(Icon):

I attached the patch :)

Greetings,
Ignacio
From c0422864f88ca3bc0e5a6ee73abb775db740cf37 Mon Sep 17 00:00:00 2001
From: Ignacio Rodriguez igna...@sugarlabs.org
Date: Fri, 20 Dec 2013 12:41:20 -0200
Subject: [PATCH] Add prelight to TrayIcon, replace ToolItem by ToolButton, and
 use PulsingIcon

---
 src/sugar3/graphics/tray.py | 54 +
 1 file changed, 10 insertions(+), 44 deletions(-)

diff --git a/src/sugar3/graphics/tray.py b/src/sugar3/graphics/tray.py
index 75d39b9..1108984 100644
--- a/src/sugar3/graphics/tray.py
+++ b/src/sugar3/graphics/tray.py
@@ -27,6 +27,7 @@ from sugar3.graphics import style
 from sugar3.graphics.palette import ToolInvoker
 from sugar3.graphics.toolbutton import ToolButton
 from sugar3.graphics.icon import Icon
+from jarabe.view.pulsingicon import PulsingIcon
 
 
 _PREVIOUS_PAGE = 0
@@ -422,56 +423,21 @@ class TrayButton(ToolButton):
 ToolButton.__init__(self, **kwargs)
 
 
-class _IconWidget(Gtk.EventBox):
+class TrayIcon(ToolButton):
 
-__gtype_name__ = 'SugarTrayIconWidget'
+__gtype_name__ = 'SugarTrayIcon'
 
 def __init__(self, icon_name=None, xo_color=None):
-Gtk.EventBox.__init__(self)
+ToolButton.__init__(self)
 
-self.set_app_paintable(True)
-self.add_events(Gdk.EventMask.BUTTON_PRESS_MASK |
-Gdk.EventMask.TOUCH_MASK |
-Gdk.EventMask.BUTTON_RELEASE_MASK)
+self._icon = PulsingIcon()
+self._icon.props.icon_name = icon_name
+self._icon.props.pulse_color = xo_color
+self._icon.props.base_color = xo_color
 
-self._icon = Icon(icon_name=icon_name, xo_color=xo_color,
-  icon_size=Gtk.IconSize.LARGE_TOOLBAR)
-self.add(self._icon)
+self.set_icon_widget(self._icon)
 self._icon.show()
 
-def do_draw(self, cr):
-palette = self.get_parent().palette
-
-if palette and palette.is_up():
-allocation = self.get_allocation()
-# draw a black background, has been done by the engine before
-cr.set_source_rgb(0, 0, 0)
-cr.rectangle(0, 0, allocation.width, allocation.height)
-cr.paint()
-
-Gtk.EventBox.do_draw(self, cr)
-
-if palette and palette.is_up():
-invoker = palette.props.invoker
-invoker.draw_rectangle(cr, palette)
-
-return False
-
-def get_icon(self):
-return self._icon
-
-
-class TrayIcon(Gtk.ToolItem):
-
-__gtype_name__ = 'SugarTrayIcon'
-
-def __init__(self, icon_name=None, xo_color=None):
-Gtk.ToolItem.__init__(self)
-
-self._icon_widget = _IconWidget(icon_name, xo_color)
-self.add(self._icon_widget)
-self._icon_widget.show()
-
 self._palette_invoker = ToolInvoker(self)
 
 self.set_size_request(style.GRID_CELL_SIZE, style.GRID_CELL_SIZE)
@@ -505,5 +471,5 @@ class TrayIcon(Gtk.ToolItem):
 type=object, setter=set_palette_invoker, getter=get_palette_invoker)
 
 def get_icon(self):
-return self._icon_widget.get_icon()
+return self._icon
 icon = property(get_icon, None)
-- 
1.8.1.2

___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] [DESIGN] Enhancement: Add description in Journal Palette

2013-12-20 Thread Ignacio Rodríguez
about 1:
This is a sugar-build bug (or maybe is my computer? :S) I only add the
separator when the description label is added.

2013/12/20, Walter Bender walter.ben...@gmail.com:
 On Fri, Dec 20, 2013 at 9:37 AM, Gonzalo Odiard gonz...@laptop.org wrote:
 Why there are multiple separators (horizontal lines) around the
 description?
 I really don't know if is good continue putting information in the
 palette,
 it's already crowded.

 Gonzalo



 On Fri, Dec 20, 2013 at 11:13 AM, Ignacio Rodríguez nachoe...@gmail.com
 wrote:

 Hi all.

 I make a patch for #4686:
 
 Enhancement: show object description in its palette
 Found it in a design at the wiki:
 http://wiki.sugarlabs.org/go/File:Journal-04.jpeg
 Making descriptions be shown upfront throughout the interface, would
 increase the usefullness of the description box, and make objects more
 discoverable.
 Perhaps only a few lines of text would be shown, say 2, as it is only
 supposed to be a preview of the description.
 

 My final version:
 http://sugarlabs.org/~ignacio/Archivos/MenuDescription.png

 I attached the patch.

 Greetings,
 Ignacio

 ___
 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


 (1) I think there is an if missing from Ignacio's patch that was there
 in earlier versions. If there is no desc. then no new spacers.
 (2) While I agree that the palette is very full, this addition IMHO,
 adds value in two ways: it is real information and it is one more
 encouragement to use the description mechanism, which as pedagogical
 value.

 regards.

 -walter

 --
 Walter Bender
 Sugar Labs
 http://www.sugarlabs.org



-- 
Saludos.
Ignacio Rodríguez
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] Sugarizer, a taste of Sugar on any device

2013-12-20 Thread Kim Toufectis
Lionel Laské lionel at olpc-france.org writes:
...
 
 Hope you'll enjoy it, it's my Christmas gift to the Sugar community 
 
 Best regards from France.
 
     Lionel.
 
...

Wow.  Brilliant, potentially the face of Sugar to come...
Lets us introduce Sugar to so many more people!






___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] [sugar-web] do webkit frames run on different threads?

2013-12-20 Thread Code Raguet
On Fri, Dec 20, 2013 at 4:38 PM, Daniel Narvaez dwnarv...@gmail.com wrote:


 chrome: not mandatory


 But likely to be mandatory in the not too distant future.

are you sure about this?
I thought that browsers were moving towards single-thread with webworkers
API when parallelism is needed.


I would probably try to write thread-safe code, if we run into some
 instance where that's very problematic we could reach out to the webkit
 developers and find out for sure.

+1
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] [web-activity] functional tests and env.isStandalone's current implementation

2013-12-20 Thread Code Raguet
On Fri, Dec 20, 2013 at 4:34 PM, Daniel Narvaez dwnarv...@gmail.com wrote:

 It should be possible but not as easy as tweaking a flag or something like
 that. You would need to download from http using libsoup or something and
 pipe data into the custom protocol stream.


Yeah, I've seen that when I was looking at _app_scheme_cb... just wondering
if would be a easiest way.

Certainly, you user-agent idea is far simpler than this.


On Fri, Dec 20, 2013 at 4:50 PM, Code Raguet ignacio.c...@gmail.com wrote:


 On Fri, Dec 20, 2013 at 4:34 PM, Daniel Narvaez dwnarv...@gmail.comwrote:

 It should be possible but not as easy as tweaking a flag or something
 like that. You would need to download from http using libsoup or something
 and pipe data into the custom protocol stream.


 Yeah, I've seen that when I was looking at _app_scheme_cb...
 just wondering if would be a easiest way.

 Certainly, you user-agent idea is far simpler than this.

___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] [sugar-web] do webkit frames run on different threads?

2013-12-20 Thread Daniel Narvaez
On 20 December 2013 20:54, Code Raguet irag...@activitycentral.com wrote:


 On Fri, Dec 20, 2013 at 4:38 PM, Daniel Narvaez dwnarv...@gmail.comwrote:


 chrome: not mandatory


 But likely to be mandatory in the not too distant future.

 are you sure about this?
 I thought that browsers were moving towards single-thread with webworkers
 API when parallelism is needed.


I know for sure that they are working on this

http://www.chromium.org/developers/design-documents/oop-iframes

I don't know for sure if js could be single threaded despite that.
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] [sugar-web] do webkit frames run on different threads?

2013-12-20 Thread Code Raguet
On Fri, Dec 20, 2013 at 4:57 PM, Daniel Narvaez dwnarv...@gmail.com wrote:

 I know for sure that they are working on this

 http://www.chromium.org/developers/design-documents/oop-iframes

 I don't know for sure if js could be single threaded despite that.


thanks
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


[Sugar-devel] [DESIGN] Add style.MENU_WIDTH_CHARS

2013-12-20 Thread Ignacio Rodríguez
Hi!
I make a simple patch, for set MENU_WIDTH_CHARS, by default is 60 :)
I modified the files where max_width_chars appear

Patch's attached.

Greetings,
Ignacio
From f627b80d76e6add15996f02f97bb411563698579 Mon Sep 17 00:00:00 2001
From: Ignacio Rodriguez igna...@sugarlabs.org
Date: Fri, 20 Dec 2013 18:25:06 -0200
Subject: [PATCH] Add style.MENU_WIDTH_CHARS to controlpanel

---
 src/jarabe/controlpanel/inlinealert.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/jarabe/controlpanel/inlinealert.py b/src/jarabe/controlpanel/inlinealert.py
index 3c0164e..eb2ea8a 100644
--- a/src/jarabe/controlpanel/inlinealert.py
+++ b/src/jarabe/controlpanel/inlinealert.py
@@ -50,7 +50,7 @@ class InlineAlert(Gtk.HBox):
   stroke_color=style.COLOR_WHITE.get_svg())
 
 self._msg_label = Gtk.Label()
-self._msg_label.set_max_width_chars(50)
+self._msg_label.set_max_width_chars(style.MENU_WIDTH_CHARS)
 self._msg_label.set_ellipsize(Pango.EllipsizeMode.MIDDLE)
 self._msg_label.set_alignment(0, 0.5)
 self._msg_label.modify_fg(Gtk.StateType.NORMAL,
-- 
1.8.1.2

From c2eccf57263b84f97a06f1f1f985746347632dd1 Mon Sep 17 00:00:00 2001
From: Ignacio Rodriguez igna...@sugarlabs.org
Date: Fri, 20 Dec 2013 18:09:43 -0200
Subject: [PATCH] add style.MENU_WIDTH_CHARS to widgets

---
 src/sugar3/graphics/menuitem.py| 4 +++-
 src/sugar3/graphics/palette.py | 2 +-
 src/sugar3/graphics/palettemenu.py | 3 ++-
 src/sugar3/graphics/style.py   | 2 ++
 4 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/src/sugar3/graphics/menuitem.py b/src/sugar3/graphics/menuitem.py
index a82707c..10bf12e 100644
--- a/src/sugar3/graphics/menuitem.py
+++ b/src/sugar3/graphics/menuitem.py
@@ -26,11 +26,13 @@ from gi.repository import Pango
 from gi.repository import Gtk
 
 from sugar3.graphics.icon import Icon
+from sugar3.graphics import style
 
 
 class MenuItem(Gtk.ImageMenuItem):
 
-def __init__(self, text_label=None, icon_name=None, text_maxlen=60,
+def __init__(self, text_label=None, icon_name=None,
+ text_maxlen=style.MENU_WIDTH_CHARS,
  xo_color=None, file_name=None):
 GObject.GObject.__init__(self)
 self._accelerator = None
diff --git a/src/sugar3/graphics/palette.py b/src/sugar3/graphics/palette.py
index 6f70420..5fec569 100644
--- a/src/sugar3/graphics/palette.py
+++ b/src/sugar3/graphics/palette.py
@@ -101,7 +101,7 @@ class Palette(PaletteWindow):
 __gtype_name__ = 'SugarPalette'
 
 def __init__(self, label=None, accel_path=None,
- text_maxlen=60, **kwargs):
+ text_maxlen=style.MENU_WIDTH_CHARS, **kwargs):
 # DEPRECATED: label is passed with the primary-text property,
 # accel_path is set via the invoker property
 
diff --git a/src/sugar3/graphics/palettemenu.py b/src/sugar3/graphics/palettemenu.py
index b4af04f..e612b5e 100644
--- a/src/sugar3/graphics/palettemenu.py
+++ b/src/sugar3/graphics/palettemenu.py
@@ -77,7 +77,8 @@ class PaletteMenuItem(Gtk.EventBox):
 'activate': (GObject.SignalFlags.RUN_FIRST, None, [])
 }
 
-def __init__(self, text_label=None, icon_name=None, text_maxlen=60,
+def __init__(self, text_label=None, icon_name=None,
+ text_maxlen=style.MENU_WIDTH_CHARS,
  xo_color=None, file_name=None):
 
 Gtk.EventBox.__init__(self)
diff --git a/src/sugar3/graphics/style.py b/src/sugar3/graphics/style.py
index e4d9a04..3c88238 100644
--- a/src/sugar3/graphics/style.py
+++ b/src/sugar3/graphics/style.py
@@ -145,3 +145,5 @@ COLOR_HIGHLIGHT = Color('#E7E7E7')
 PALETTE_CURSOR_DISTANCE = zoom(10)
 
 TOOLBAR_ARROW_SIZE = zoom(24)
+
+MENU_WIDTH_CHARS = 60
-- 
1.8.1.2

___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] [support-gang] Sugarizer, a taste of Sugar on any device

2013-12-20 Thread Lionel Laské
Hi James,

Regarding the search text box, you're right it's... not yet implemented.

Regarding testing on XO-4 with Android 4.3.1, seems that Sameer had more
luck than you:
https://www.facebook.com/photo.php?fbid=10151906199843752set=pcb.10151906199923752type=1theater

BTW, it's true that depending of the browser it could have HTML5
compatibility issue but it's most often on activities than on the home view
itself.

   Lionel.


Date: Fri, 20 Dec 2013 18:06:30 +1100
From: James Cameron qu...@laptop.org
To: sugar-devel@lists.sugarlabs.org
Subject: Re: [Sugar-devel] [support-gang] Sugarizer,a taste of Sugar
on any device
Message-ID: 20131220070630.gs30...@us.netrek.org
Content-Type: text/plain; charset=us-ascii

Tested on XO-4 with Android 4.3.1 using the built-in browser.

I see the activity view but without any activities.  The search text
box can typed into, but it does nothing.  The ring and list icons are
present, and do respond to touch by highlighting, but the body of the
page contains nothing.

Any idea what is causing this?

--
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] [ASLO] Release Paint-63

2013-12-20 Thread Sugar Labs Activities
Activity Homepage:
http://activities.sugarlabs.org/addon/4082

Sugar Platform:
0.96 - 0.100

Download Now:
http://activities.sugarlabs.org/downloads/file/28854/paint-63.xo

Release notes:
Implement drag a text while is in edition mode
Fix bucket color - SL #4622
Fix the operation of end a selection
Paint tools enhancement (Emil Dudev)
Fix invert colors tool - SL #3618  SL #4674
Invert color cursor (Ignacio Rodriguez)
Let the user to paste text SL#4559 (Agustin Zubiaga)
Updated translations



Sugar Labs Activities
http://activities.sugarlabs.org

___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


[Sugar-devel] [ANN] SqueakJS

2013-12-20 Thread Bert Freudenberg
Hi folks,

this is still far from running Etoys in the browser, but it does work 
surprisingly well:

http://croquetweak.blogspot.de/2013/12/squeakjs-lively-squeak-vm.html

Have a great Christmas!

- Bert - 
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] [support-gang] Sugarizer, a taste of Sugar on any device

2013-12-20 Thread James Cameron
Thanks, it worked today.

Speculation: browser was unable to download a dependency and there was
no feedback about it.

Is there a way to make it more resilient against failure to download
dependencies?

Is there a way to package this as an Android App?

-- 
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] [support-gang] Sugarizer, a taste of Sugar on any device

2013-12-20 Thread Lionel Laské
2013/12/20 James Cameron qu...@laptop.org


 Is there a way to package this as an Android App?


It's already packaged as an Android App :-)
Click on the Android App on Google play to download the .apk file.

   Lionel.
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] Gambiarra game

2013-12-20 Thread Bernie Innocenti
Aleksey, could you please do this? If you're busy, I'll do it over the
week-end.

On 12/19/13 05:11, Gonzalo Odiard wrote:
 Bernie, Aleksey,
 Alan proposed work in this activity a month ago.
 The owner was notified, but didn't replied,
 can you give him access to the git repository?
 Thanks
 
 Gonzalo
 
 
 On Mon, Nov 18, 2013 at 4:12 PM, Alan Jhonn Aguiar Schwyn
 alan...@hotmail.com mailto:alan...@hotmail.com wrote:
 
 Hi,
 
 I want to continue working with this game. It's interesting.
 Now, I have some changes:
 
 -add translations for other languages
 -add compatibility with new sugar versions
 -replace OLPCGames library for SugarGames
 
 Wich is the way to get permissions to original GIT:
 
 https://git.sugarlabs.org/gambiarra
 
 Regards!
 
 Alan
 
 ___
 Sugar-devel mailing list
 Sugar-devel@lists.sugarlabs.org mailto:Sugar-devel@lists.sugarlabs.org
 http://lists.sugarlabs.org/listinfo/sugar-devel
 
 


-- 
 _ // Bernie Innocenti
 \X/  http://codewiz.org
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


[Sugar-devel] Sugarizer: the (dark) technical side

2013-12-20 Thread Lionel Laské
Hi all,

Thanks a lot for your support to Sugarizer. Really appreciate.

To complete the technical explanation on the first prototype [1], here a
technical overview of the new Sugarizer.

1) Settings: Sugarizer use HTML5 localStorage feature to store user
settings [2]. The settings is set in a key name sugar_settings. Settings
include: buddy name (no way to change it from the GUI for the moment :-),
buddy color (tip to change it: click/touch several time the XO buddy icon),
current view (Circle, List or Journal) - to go back to last view at the end
of an activity -, and current installed activities list with favorite
choice.

2) Datastore: To ensure compatibility with Sugar Web Framework I've
implemented datastore using the same interface than the current
datastore.js. See it [3]. Once again HTML5 localStorage is used to store
it. Each datastore entry is store in a key name
sugar_datastore_[UUID=ObjectId]. The key value has a property metadata.
I've set the same metadata values than in the true datastore
(creation_time, file_size, time_stamp, ...). The key value has also a
property text for the text content. Both value are set together.

3) Environment: The Sugarizer launcher need to transmit the context to the
activity (activityId, name, objectId). I choose to use query_string to send
these parameter. So all parameters are pass to the index.html page of the
activity [4] after a ?. The values are set to the Sugar Web Framework
window.top.sugar variable at first call of datastore [5]. I'm not very
happy with that but don't find any other place to initialize the
environment.

4) Sugar web framework upgrade: the drawback of the Sugar Web Framework is
that it should be copied on each activity directory. For Sugarizer I've
changed two files only in the framework (datastore.js and bus.js).
Unfortunately I've found some issues in activities related to old version
of palette.js and activitypalette.js so I choose to upgrade all the
framework in all activities.

5) Activities issue: My philosophy with Sugarizer is don't update
activities. BTW I've decided to fix an issue in WelcomeWeb in
activity.js. Most of the code seems to be pasted from the GetThingsDone
Activity so I've commented a part of it [6] that don't work in the context
of WelcomeWeb.
The Paint activity has yet a HTML5 compatibility issue due to the use of
CustomEvent feature - not supported on old browser version - in
colorpalette.js [7] but I don't know how to update it.

6) GUI complexity: Of course because I've reproduced a part of Sugar home
view I've discovered some subtle way of working in the interface (like the
double-timer in the popup menu !). BTW the more specific issue I've had to
solve was related to colorize icon. The current process in Sugar Web
Framework is nice (put it as data an redraw it [8]) but time consuming in
JavaScript. So I've created a local cache of colorized icon [9] to optimize
the code when colorize need to be call multiple times (in activity popup or
journal for example).

Hope that these explanations could let you have a better understanding of
specific web issues.

Lionel.

[1] http://lists.sugarlabs.org/archive/sugar-devel/2013-November/045887.html
[2] https://github.com/llaske/Sugarizer/blob/master/lib/settings.js#L43
[3]
https://github.com/llaske/Sugarizer/blob/master/lib/sugar-web/datastore.js
[4] https://github.com/llaske/Sugarizer/blob/master/lib/settings.js#L103
[5]
https://github.com/llaske/Sugarizer/blob/master/lib/sugar-web/datastore.js#L79
[6]
https://github.com/llaske/Sugarizer/blob/master/activities/WelcomeWeb.activity/js/activity.js#L17
[7]
https://github.com/llaske/Sugarizer/blob/master/activities/Paint.activity/js/colorpalette.js#L9
[8]
https://github.com/llaske/Sugarizer/blob/master/lib/sugar-web/graphics/icon.js#L20
[9] https://github.com/llaske/Sugarizer/blob/master/js/activityicon.js#L38
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] [support-gang] Sugarizer, a taste of Sugar on any device

2013-12-20 Thread James Cameron
On Fri, Dec 20, 2013 at 11:16:26PM +0100, Lionel Laské wrote:
 It's already packaged as an Android App :-)
 Click on the Android App on Google play to download the .apk file.

Sorry, I didn't see anything with those words that would respond to a
click.

Good to know you have published it on Google Play, but that requires
an account, and I'd rather not demand that an account be used by
learners.

I've look in your git repository for a way to package this as an .apk,
but found nothing.  Will you be publishing how you package?

I'd like to be able to add to http://wiki.laptop.org/go/Android some
pertinent information for offline use of Sugarizer.

-- 
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] [support-gang] Sugarizer, a taste of Sugar on any device

2013-12-20 Thread Sameer Verma
On Dec 20, 2013 9:13 PM, Lionel Laské lio...@olpc-france.org wrote:


 Hi James,

 Regarding the search text box, you're right it's... not yet implemented.

 Regarding testing on XO-4 with Android 4.3.1, seems that Sameer had more
luck than you:
https://www.facebook.com/photo.php?fbid=10151906199843752set=pcb.10151906199923752type=1theater


I used the Android app that Lionel has on the Sugarizer site.

cheers,
Sameer
(posted from a XO-4 running Android JellyBean 4.3)

 BTW, it's true that depending of the browser it could have HTML5
compatibility issue but it's most often on activities than on the home view
itself.

Lionel.


 Date: Fri, 20 Dec 2013 18:06:30 +1100
 From: James Cameron qu...@laptop.org
 To: sugar-devel@lists.sugarlabs.org
 Subject: Re: [Sugar-devel] [support-gang] Sugarizer,a taste of Sugar
 on any device
 Message-ID: 20131220070630.gs30...@us.netrek.org
 Content-Type: text/plain; charset=us-ascii


 Tested on XO-4 with Android 4.3.1 using the built-in browser.

 I see the activity view but without any activities.  The search text
 box can typed into, but it does nothing.  The ring and list icons are
 present, and do respond to touch by highlighting, but the body of the
 page contains nothing.

 Any idea what is causing this?

 --
 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 mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] Sugarizer: the (dark) technical side

2013-12-20 Thread James Cameron
An excellent summary, thanks.

Lionel Laské wrote:
 5) Activities issue: My philosophy with Sugarizer is don't update
 activities.

How would you envisage an update of activities on an Android system
that has an offline copy of Sugarizer?

Speculation: bring the system online, update to new version of
Sugarizer, and a whole set of activities are updated.

-- 
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] [support-gang] Sugarizer, a taste of Sugar on any device

2013-12-20 Thread Sameer Verma
On Dec 20, 2013 10:52 PM, James Cameron qu...@laptop.org wrote:

 On Fri, Dec 20, 2013 at 11:16:26PM +0100, Lionel Laské wrote:
  It's already packaged as an Android App :-)
  Click on the Android App on Google play to download the .apk file.

 Sorry, I didn't see anything with those words that would respond to a
 click.

 Good to know you have published it on Google Play, but that requires
 an account, and I'd rather not demand that an account be used by
 learners.


This is a major showstopper for the currently peddled/marketed XO Tablet.

1) the child may not have an account on Google.
2) the child may not be online/have connectivity.
3) The child may not have $2.99 for the Alchemy app (for example).

Note: I did have to enable installation from unknown sources.

cheers,
Sameer

 I've look in your git repository for a way to package this as an .apk,
 but found nothing.  Will you be publishing how you package?

 I'd like to be able to add to http://wiki.laptop.org/go/Android some
 pertinent information for offline use of Sugarizer.

 --
 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 mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] [support-gang] Sugarizer, a taste of Sugar on any device

2013-12-20 Thread James Cameron
On Fri, Dec 20, 2013 at 02:58:24PM -0800, Sameer Verma wrote:
 I used the Android app that Lionel has on the Sugarizer site.

Thanks.  I've had another look now.  It was an image, not text, and I
hadn't scrolled down that far.  Sorry about that, Lionel!

It works well.

The clock did stop ticking though.

-- 
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] [support-gang] Sugarizer, a taste of Sugar on any device

2013-12-20 Thread James Cameron
On Fri, Dec 20, 2013 at 03:03:43PM -0800, Sameer Verma wrote:
 
 On Dec 20, 2013 10:52 PM, James Cameron qu...@laptop.org wrote:
 
  On Fri, Dec 20, 2013 at 11:16:26PM +0100, Lionel Laské wrote:
   It's already packaged as an Android App :-)
   Click on the Android App on Google play to download the .apk file.
 
  Sorry, I didn't see anything with those words that would respond to a
  click.
 
  Good to know you have published it on Google Play, but that requires
  an account, and I'd rather not demand that an account be used by
  learners.
 
 
 This is a major showstopper for the currently peddled/marketed XO Tablet.
 
 1) the child may not have an account on Google.
 2) the child may not be online/have connectivity.
 3) The child may not have $2.99 for the Alchemy app (for example).

Yes, it is a disadvantage.  The intended use is that the system is
controlled by an adult for the purposes of using contracted services
like Google Play.

Deployments may handle this by setting up their own internal
equivalents, even if it is a collection of .apk's on a web server.

That's also how I'd like to handle it locally, which is why I was
interested in the .apk file.

 Note: I did have to enable installation from unknown sources.

Yes, me too.

-- 
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] [support-gang] Sugarizer, a taste of Sugar on any device

2013-12-20 Thread Lionel Laské
The .apk is downloadable here
http://sugarizer.org/org.olpc-france.sugarizer.apk
This link is also the target link of Android App on Google Play icon on
http://sugarizer.org page.
I've used this icon for comestic reason :-) but no, Sugarizer is not
available in Google Play. So because it don't come from Google Play, you
have to  enable installation from unknown sources in the Android device
settings to allow installing it.

Regarding the way I've generated the .APK from the web site, it's Phone Gap
build (the cloud version of PhoneGap [1]). You could see the config file
need for Phone Gap build in the source repository here [2].

  Lionel.


[1] https://build.phonegap.com
[2] https://github.com/llaske/Sugarizer/blob/master/config.xml

2013/12/21 Sameer Verma sve...@sfsu.edu


 On Dec 20, 2013 10:52 PM, James Cameron qu...@laptop.org wrote:
 
  On Fri, Dec 20, 2013 at 11:16:26PM +0100, Lionel Laské wrote:
   It's already packaged as an Android App :-)
   Click on the Android App on Google play to download the .apk file.
 
  Sorry, I didn't see anything with those words that would respond to a
  click.
 
  Good to know you have published it on Google Play, but that requires
  an account, and I'd rather not demand that an account be used by
  learners.
 

 This is a major showstopper for the currently peddled/marketed XO Tablet.

 1) the child may not have an account on Google.
 2) the child may not be online/have connectivity.
 3) The child may not have $2.99 for the Alchemy app (for example).

 Note: I did have to enable installation from unknown sources.

 cheers,
 Sameer

  I've look in your git repository for a way to package this as an .apk,
  but found nothing.  Will you be publishing how you package?
 
  I'd like to be able to add to http://wiki.laptop.org/go/Android some
  pertinent information for offline use of Sugarizer.
 
  --
  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 mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] Sugarizer: the (dark) technical side

2013-12-20 Thread Lionel Laské
 An excellent summary, thanks.

  Lionel Lask? wrote:
 5) Activities issue: My philosophy with Sugarizer is don't update
 activities.

 How would you envisage an update of activities on an Android system
 that has an offline copy of Sugarizer?

 Speculation: bring the system online, update to new version of
 Sugarizer, and a whole set of activities are updated.


Yes, it's why, the first time Sugarizer is run, it launch a XmlHttpRequest
to request the list of activity [1]. For the moment this request is just a
link to a local JSON file [2] but the idea is that this JSON file could be
generated later by a back office.

In my dream, a future version of Sugarizer could launch a request to Sugar
App Store to list new Sugar web activities then ask to user if he's
interested to download it locally. Of course it will need to handle
downloading and local storage of files.

   Lionel.

[1] https://github.com/llaske/Sugarizer/blob/master/js/homeview.js#L44
[2] https://github.com/llaske/Sugarizer/blob/master/activities.json
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel