[sugar] Shell redesign status

2008-03-08 Thread Marco Pesenti Gritti
Hey Tomeu, seems like you are doing great progresses on the shell redesign! Can you update me on the status? Are we far from a no regression state? I should have time tomorrow to review it, if it's ready to be. Marco ___ Sugar mailing list Sugar@lists.

[sugar] OLPC News 2008-03-08

2008-03-08 Thread Walter Bender
1. John Watlington, Walter Bender, and Edgar Ceballos (Brightstar) spent this past week in Huampani (Lima) participating in Peru's first train-the-trainers workshop. (143 of the participants will be staffing regional support centrals scatter throughout every corner of the country.) Using a custom

Re: [sugar] Does datastore.write() work at all?

2008-03-08 Thread Benjamin M. Schwartz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Benjamin M. Schwartz wrote: | ~ File "/usr/lib/python2.5/site-packages/olpc/datastore/datastore.py", | line 177, in _resolveMountpoint | ~mp = self.mountpoints[mountpoint] | KeyError: dbus.String(u'1285c87a-1b13-4463-9e19-87f0ad8e1828', | variant_

[sugar] Does datastore.write() work at all?

2008-03-08 Thread Benjamin M. Schwartz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 When I call datastore.write(jobject), my program dies, producing the appended logfile. The error is ~ File "/usr/lib/python2.5/site-packages/olpc/datastore/datastore.py", line 177, in _resolveMountpoint ~mp = self.mountpoints[mountpoint] KeyErro

Re: [sugar] Database Activity

2008-03-08 Thread Simos Xenitellis
The current Python installations use ascii as the default encoding. The new Python (Python 3?) will switch the default to UTF-8. What to do to test if the problem is this? Go to /etc/python2.5/site.py and find the function setencoding(). Change the value from "ascii" to "utf-8". Try again your te

Re: [sugar] Database Activity

2008-03-08 Thread 7150
This will be my last post on this topic until I learn a bit more. It appears that pysqlite has some data integrity issues. Interesting link to pysqlite "bug" discussion: http://osdir.com/ml/python.db.pysqlite.user/2006-04/msg00020.html --- "I have built sqlite databases containing utf-8 encod

Re: [sugar] Datastore: uid, entry_id, object_id, activity_id ?

2008-03-08 Thread Michael Stone
> What is the uid, and, given a DSObject, how am I supposed to determine it? The DS is currently implemented on top of an information retrieval (IR) system called Xapian [1]. Xapian basically divides the world up into Databases [2], Documents, terms, postings, and a few other details. Since Databa

Re: [sugar] Database Activity

2008-03-08 Thread 7150
Except. Norwegian requires Å, Ø, and Æ (lower case also). So, (1) the XO cannot display those characters. WRONG. I went to my Toshiba laptop to try this in another environment. Neither could my laptop, which has a Norwegian keyboard and is used all the time to read/write Norwegian content

[sugar] Datastore: uid, entry_id, object_id, activity_id ?

2008-03-08 Thread Benjamin M. Schwartz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to this page: http://wiki.laptop.org/go/Journal_entry_bundles ... Each journal entry has a unique "uid". This 'uid' is listed in its metadata, and a conforming Journal Entry Bundle uses the uid calue to name various components of the bundle

[sugar] Database Activity

2008-03-08 Thread 7150
Ok, now that I have recovered from dyslexia, I find that I can access my database through pysqlite from Pippy. I wrote a little Pippy program to select various rows and it goes just fine. I can confidently take it to the next level. Except. Norwegian requires Å, Ø, and Æ (lower case also). So,

[sugar] A Hello World that does it all?

2008-03-08 Thread Kent Loobey
Is there a "Hello World" python example that includes all of the basic XO/Sugar necessities, i.e., journalling, building, file storage, whatever? I am assuming that there are two ways to go with python at this point, OLPCGames and OLPCGTK. Is this right or are there other options? Thanks. Ken

Re: [sugar] Database Activity

2008-03-08 Thread Michael Stone
On Sat, Mar 08, 2008 at 03:45:58PM -0500, Chris Ball wrote: > Hi, > >> I can use some advice as to how to proceed with the Python-database >> linkage. I don't think the XO has Psyqlite installed, and I really >> want to stay within what is available on the box with no add-ins, >> i

Re: [sugar] Database Activity

2008-03-08 Thread Chris Ball
Hi, > I can use some advice as to how to proceed with the Python-database > linkage. I don't think the XO has Psyqlite installed, and I really > want to stay within what is available on the box with no add-ins, > if possible. Maybe installing Psyqlite is ok. We do have pysqlite instal

[sugar] Database Activity

2008-03-08 Thread 7150
I am starting a Norwegian-English dictionary activity. I have created a 4000 row SQLite database from a resource I built on my Clie and Treo over several years. It is now on the XO's SD card. I can access it nicely with SQLite in a terminal session. I am ready to do some Python to create some s

Re: [sugar] keyboard bindings for buttons and palettes

2008-03-08 Thread Tomeu Vizoso
On Fri, Feb 29, 2008 at 2:14 PM, Tomeu Vizoso <[EMAIL PROTECTED]> wrote: > On Tue, Feb 26, 2008 at 3:35 PM, Marco Pesenti Gritti > <[EMAIL PROTECTED]> wrote: > > > The bad: > > > > > > - Every widget will have to listen for 'hierarchy-changed' in order to > > > set the accelerator for t