Re: [Sugar-devel] Fwd: What should be the best set in order to develop for Sugar in Ubuntu, today ?

2011-12-02 Thread laurent bernabe
Thank you, first I look at requested functionnalities in order to see if i
am able to contribute

2011/12/2 Gonzalo Odiard gonz...@laptop.org

 You can ask in this list or in #sugar irc channel at freenode.
 Other members of the Activity Team and me, will try to help you.

 Gonzalo


 On Fri, Dec 2, 2011 at 1:46 PM, laurent bernabe laurent.bern...@gmail.com
  wrote:

 Ok, thank you. I'll look activities tickets in order to see if I am able
 to contribute.
 But I must also learn about tickets system : I've never used it before.

 Who must I contact If ever I am able to contribute ?


 2011/12/2 Gonzalo Odiard gonz...@laptop.org

 You can select your favorite activity and look at the already filled
 tickets
 I use this page to look at the filled tickets in both trakers (sugarlabs
 and olpc)
 http://dev.laptop.org/~gonzalo/bugs_index.html

 Gonzalo


 On Fri, Dec 2, 2011 at 1:36 PM, laurent bernabe 
 laurent.bern...@gmail.com wrote:


 (Apologizes, i forgot to reply to sugar devel and not only Walter
 Bender)


 -- Forwarded message --
 From: laurent bernabe laurent.bern...@gmail.com
 Date: 2011/12/2
 Subject: Re: [Sugar-devel] What should be the best set in order to
 develop for Sugar in Ubuntu, today ?
 To: Gonzalo Odiard gonz...@laptop.org


 Ok i will install ubuntu package version. Thank you.

 You're right, helping for existing activities is a good idea. I'm not
 telling that for sure i will be able to do it, but i can try : where can I
 learn what is needed ?



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


[Sugar-devel] Cannot run Pippy examples in Ubuntu Sugar emulator version

2011-12-02 Thread laurent bernabe
Hello everyone,

I've got the Ubuntu Oneric Ocelot, and I've installed Sugar emulator (0.88)
and pippy activity (37). Unfortunately, most of the examples does not work
(those which import pippy package) : No module named pippy.


   - I've read on the net that it should be a licensing issue, but how can
   fix it ?


   - By the way, is there a way to publish activities created with pippy or
   must I necessarily have an ide with python binding and packaging the
   activity by hand ?


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


Re: [Sugar-devel] Cannot run Pippy examples in Ubuntu Sugar emulator version

2011-12-02 Thread laurent bernabe
Thank you


   -  so if Ubuntu is so unpleaseant about Sugar and Pippy, I should format
   the Linux partition to a Fedora one (I've already used Fedora, and no
   really difference with Ubuntu : so I can easily move to Fedora ^^)
   - Yes, I've already packaged an activity by hand, and used
   sugar-install-bundle : I just wanted to make it from Pippy (maybe as a
   geek developper, could I help Pippy developpers to do that ... what kind of
   dream ^^)
   - Thank you very much for all your references (HTML links) : I'll have a
   look at it :)


2011/12/3 Gonzalo Odiard gonz...@laptop.org



 On Fri, Dec 2, 2011 at 3:22 PM, laurent bernabe laurent.bern...@gmail.com
  wrote:

 Hello everyone,

 I've got the Ubuntu Oneric Ocelot, and I've installed Sugar emulator
 (0.88) and pippy activity (37). Unfortunately, most of the examples does
 not work (those which import pippy package) : No module named pippy.


- I've read on the net that it should be a licensing issue, but how
can fix it ?


 No idea about the ubuntu issue.


- By the way, is there a way to publish activities created with pippy
or must I necessarily have an ide with python binding and packaging the
activity by hand ?



 What version of Pippy are you using? The last versions have a
 functionality (right button in the keep button in the olders, a button in
 the activity subtoolbar  in the last) to create one activity.

 Packaging a activity is very easy, and in Make your own Sugar activities
 you have a lot of info.
 Another good source is http://wiki.sugarlabs.org/go/Activity_Team

 Gonzalo


 Regards

 ___
 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] What should be the best set in order to develop for Sugar in Ubuntu, today ?

2011-12-02 Thread laurent bernabe
Thank you, I'm installing sweet on my ubuntu partition
(Apologizes for having said that Linux is the best programming os, it's up
to everybody to make it choice ^^)

2011/12/3 Aleksey Lim alsr...@activitycentral.org

 On Fri, Dec 02, 2011 at 10:24:24AM +0100, laurent bernabe wrote:
  Hello everyone,
 
  I have a laptop computer that can run both windows 7 and ubuntu linux. My
  question is :
 
 - what is the best way to be prepeared to develop in linux, as it is
 the
 best paltform for programming ?
 - Should i install sugar ubuntu package ? Should i use Fedora instead
 ?

 Thats up to you, ie, your preferences regarding the GNU/Linux
 distributions. In some cases distributions have well packaged Sugar
 (Fedora), and you can just install these packages, in other cases
 might not.

 In any case, there is a distribution agnostic solution, Sweets[1].
 It is designed to work on top of major GNU/Linux distributions to
 provide to same Sugar software versions for all of them. For example, it
 should work on Ubuntu-11.10, providing recent (and a couple of other
 verisons) Sugar.

 Moreover, Sweets is designed to be useful[3] in development process as
 well. For example for Sugar Shell sweets, it looks like:

 * checkout sources
 * launch sources using, e.g., `sweets PATH` command

 [1] http://wiki.sugarlabs.org/go/Platform_Team/Guide/Sweets_Usage
 [2]
 http://wiki.sugarlabs.org/go/Platform_Team/Guide/Sweets_Usage#Sugar_via_Sweets
 [3]
 http://wiki.sugarlabs.org/go/Platform_Team/Guide/Sweets_Packaging#Development_with_Sweets

 --
 Aleksey

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


Re: [Sugar-devel] Cannot run Pippy examples in Ubuntu Sugar emulator version

2011-12-02 Thread laurent bernabe
It's ok : i'm about to install Fedora 14 (Hope i'll be able to save all my
Google chrome bookmarks ..., if someone has a usefull extension, I will be
a good owner of it)

2011/12/3 Gonzalo Odiard gonz...@laptop.org



 On Sat, Dec 3, 2011 at 2:13 AM, laurent bernabe laurent.bern...@gmail.com
  wrote:

 Thank you


-  so if Ubuntu is so unpleaseant about Sugar and Pippy, I should
format the Linux partition to a Fedora one (I've already used Fedora, and
no really difference with Ubuntu : so I can easily move to Fedora ^^)

 Great, Fedora 14 is the version used in the last stable images. Of course
 you can use newer versions, but in Fedora 16 a few activities will not
 start because of changes in underlaying libraries.



- Yes, I've already packaged an activity by hand, and used
sugar-install-bundle : I just wanted to make it from Pippy (maybe as a
geek developper, could I help Pippy developpers to do that ... what kind 
 of
dream ^^)

 Very nice. There are a lot of work to do in Pippy :)

 Gonzalo


- Thank you very much for all your references (HTML links) : I'll
have a look at it :)


 2011/12/3 Gonzalo Odiard gonz...@laptop.org



 On Fri, Dec 2, 2011 at 3:22 PM, laurent bernabe 
 laurent.bern...@gmail.com wrote:

 Hello everyone,

 I've got the Ubuntu Oneric Ocelot, and I've installed Sugar emulator
 (0.88) and pippy activity (37). Unfortunately, most of the examples does
 not work (those which import pippy package) : No module named pippy.


- I've read on the net that it should be a licensing issue, but how
can fix it ?


 No idea about the ubuntu issue.


- By the way, is there a way to publish activities created with
pippy or must I necessarily have an ide with python binding and 
 packaging
the activity by hand ?



 What version of Pippy are you using? The last versions have a
 functionality (right button in the keep button in the olders, a button in
 the activity subtoolbar  in the last) to create one activity.

 Packaging a activity is very easy, and in Make your own Sugar
 activities you have a lot of info.
 Another good source is http://wiki.sugarlabs.org/go/Activity_Team

 Gonzalo


 Regards

 ___
 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] The best place to learn interaction with the olpc journal ?

2011-06-22 Thread laurent bernabe
Thank you,

I will have a look at it and give you feedback

Regards

2011/6/22 moku...@earthtreasury.org

 On Tue, June 21, 2011 1:59 pm, laurent bernabe wrote:
  Hello everyone,
 
  I just would like to know where is the best place to learn interaction
  with Sugar OLPC journal ?
  Because I think that I've not  yet well understand the concept, for my
  project LearningWriting.
 
  I've read the tutorial
  http://en.flossmanuals.net/make-your-own-sugar-activities/, but it does
  not seem to cover all features.

 I have started to explain the Journal at

 http://wiki.sugarlabs.org/go/The_Undiscoverable#Journal

 http://booki.treehouse.su/discovering-discovery/_v/1.0/discovery-journal/

 Please let me know whether they help, and send me any other questions you
 have.

  (I need to save my drawings and put them back in my application)

 When you quit an application, it is supposed to allow you to give the
 session a meaningful name that you can find in the Journal. Right-click
 the Journal entry to see the options for opening it in various activities.

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


 --
 Edward Mokurai

 (#40664;#38647;/#2343;#2352;#2381;#2350;#2350;#2375;#2328;#2358;#2348;#2381;#2342;#2327;#2352;#2381;#2332;/#1583;#1726;#1585;#1605;#1605;#1740;#1711;#1726;#1588;#1576;#1583;#1711;#1585;
 #1580;) Cherlin
 Silent Thunder is my name, and Children are my nation.
 The Cosmos is my dwelling place, the Truth my destination.
 http://wiki.sugarlabs.org/go/Replacing_Textbooks



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


Re: [Sugar-devel] The best place to learn interaction with the olpc journal ?

2011-06-22 Thread laurent bernabe
Hello,

i'm happy to discover the terminal command copy-to-journal.

But i'm still bothered by the usb key - journal transfer. That is :

   - when I open an already saved LearningWriting (whose outputs mime type
   is application/x-graph : *.gph) from the OLPC journal, all is fine
   - but when first copy an entry from the OLPC journal to the USB  key; put
   it try to open it from USB key journal, my application clears all data,
   though it does not clears data when I open an entry from the OLPC journal.
   It neither works if I import an entry from the usb key to the olpc, before
   trying to open it.

So my question is : is it the read_file() method in my application which may
be bad coded or a bad manipulation from the olpc journal ?

Regards

2011/6/22 moku...@earthtreasury.org

 On Tue, June 21, 2011 1:59 pm, laurent bernabe wrote:
  Hello everyone,
 
  I just would like to know where is the best place to learn interaction
  with Sugar OLPC journal ?
  Because I think that I've not  yet well understand the concept, for my
  project LearningWriting.
 
  I've read the tutorial
  http://en.flossmanuals.net/make-your-own-sugar-activities/, but it does
  not seem to cover all features.

 I have started to explain the Journal at

 http://wiki.sugarlabs.org/go/The_Undiscoverable#Journal

 http://booki.treehouse.su/discovering-discovery/_v/1.0/discovery-journal/

 Please let me know whether they help, and send me any other questions you
 have.

  (I need to save my drawings and put them back in my application)

 When you quit an application, it is supposed to allow you to give the
 session a meaningful name that you can find in the Journal. Right-click
 the Journal entry to see the options for opening it in various activities.

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


 --
 Edward Mokurai

 (#40664;#38647;/#2343;#2352;#2381;#2350;#2350;#2375;#2328;#2358;#2348;#2381;#2342;#2327;#2352;#2381;#2332;/#1583;#1726;#1585;#1605;#1605;#1740;#1711;#1726;#1588;#1576;#1583;#1711;#1585;
 #1580;) Cherlin
 Silent Thunder is my name, and Children are my nation.
 The Cosmos is my dwelling place, the Truth my destination.
 http://wiki.sugarlabs.org/go/Replacing_Textbooks



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


[Sugar-devel] The best place to learn interaction with the olpc journal ?

2011-06-21 Thread laurent bernabe
Hello everyone,

I just would like to know where is the best place to learn interaction with
Sugar OLPC journal ?
Because I think that I've not  yet well understand the concept, for my
project LearningWriting.

I've read the tutorial
http://en.flossmanuals.net/make-your-own-sugar-activities/, but it does not
seem to cover all features.
(I need to save my drawings and put them back in my application)

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


Re: [Sugar-devel] The best place to learn interaction with the olpc journal ?

2011-06-21 Thread laurent bernabe
Hello,

I apologize, I explained what I wanted to say in a bad way

the etext example given in the tutorial does not show a write_file example.
I tried to implement write_file in my application by giving a look at Turtle
art example, adapting it for a custom MIME type. I believe it is quite
simple to do this, but unfortunately, i must have done a mistake in my
application :

   - when I give a look at the journal, the screen capture of my save is ok.
   But when I try to open it with my application, the picture as been erased
   and I have lost all my data (Instead of really opening my save, it starts
   from sratch and erase old saves). So I think I misunderstood the
   developpment of interaction with the journal. My MIME type is *.gph and
   stands for application/x-graph
   - when I copy an entry from the journal to the USB key, it has the gph
   extension, but it appears as empty : screen capture is a green background
   (the standard background of my application). However, when i open it with a
   text editor from my linux host, it has text data. So i really think i have
   misunderstood the development of interaction with the journal

I apologize for what i've said in my recent post.

Regards

2011/6/21 James Simmons nices...@gmail.com

 Laurent,

 I thought I had covered what you need to know in MYOSA, but if it
 wasn't clear all you need to do to load a drawing that you created in
 your Activity is implement the

 def read_file(self, file_path):

 method.  That gets executed when your Activity gets loaded, and
 file_path will contain the data from your Journal entry.  You can also
 read metadata from the Journal entry here.

 When you close your Activity then the

 def write_file(self, filename):

 will save your drawing file as a Journal entry.  The write_file()
 method is also the place where you can set up metadata for your
 Journal entry.

 write_file() is also invoked when you switch the focus away from your
 Activity.

 That is all most Activities will ever need to do, but if you want to
 do more the chapter Fun With The Journal will give you the details.

 If there are features you need to know about that I didn't cover could
 you let me know what they are?

 James Simmons


 On Tue, Jun 21, 2011 at 12:59 PM, laurent bernabe
 laurent.bern...@gmail.com wrote:
  Hello everyone,
 
  I just would like to know where is the best place to learn interaction
 with
  Sugar OLPC journal ?
  Because I think that I've not  yet well understand the concept, for my
  project LearningWriting.
 
  I've read the tutorial
  http://en.flossmanuals.net/make-your-own-sugar-activities/, but it does
 not
  seem to cover all features.
  (I need to save my drawings and put them back in my application)
 
  Regards
 
  ___
  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] The best place to learn interaction with the olpc journal ?

2011-06-21 Thread laurent bernabe
2011/6/21 Walter Bender walter.ben...@gmail.com


 I am not sure I follow your intension here. I have been running your
 activity and although I haven't tested it extensively, when I relaunch
 from the Journal I get the drawing I made reloaded. When I add to that
 drawing and save, upon relaunch, I get the aggregate drawing. What
 behavior would you expect otherwise?


That's exactly what i wanted to do, but i can't manage : so it's the journal
using that i misunderstood. However i launched it with the restart button
from the journal, and even with the restart from LearningWriting option.


  when I copy an entry from the journal to the USB key, it has the gph
  extension, but it appears as empty : screen capture is a green background
  (the standard background of my application). However, when i open it with
 a
  text editor from my linux host, it has text data. So i really think i
 have
  misunderstood the development of interaction with the journal

 I've not tested this. Will do and report back.

 regards.

 -walter


Thank you :)

Regards


 
  I apologize for what i've said in my recent post.
 
  Regards
 
  2011/6/21 James Simmons nices...@gmail.com
 
  Laurent,
 
  I thought I had covered what you need to know in MYOSA, but if it
  wasn't clear all you need to do to load a drawing that you created in
  your Activity is implement the
 
  def read_file(self, file_path):
 
  method.  That gets executed when your Activity gets loaded, and
  file_path will contain the data from your Journal entry.  You can also
  read metadata from the Journal entry here.
 
  When you close your Activity then the
 
  def write_file(self, filename):
 
  will save your drawing file as a Journal entry.  The write_file()
  method is also the place where you can set up metadata for your
  Journal entry.
 
  write_file() is also invoked when you switch the focus away from your
  Activity.
 
  That is all most Activities will ever need to do, but if you want to
  do more the chapter Fun With The Journal will give you the details.
 
  If there are features you need to know about that I didn't cover could
  you let me know what they are?
 
  James Simmons
 
 
  On Tue, Jun 21, 2011 at 12:59 PM, laurent bernabe
  laurent.bern...@gmail.com wrote:
   Hello everyone,
  
   I just would like to know where is the best place to learn interaction
   with
   Sugar OLPC journal ?
   Because I think that I've not  yet well understand the concept, for my
   project LearningWriting.
  
   I've read the tutorial
   http://en.flossmanuals.net/make-your-own-sugar-activities/, but it
 does
   not
   seem to cover all features.
   (I need to save my drawings and put them back in my application)
  
   Regards
  
   ___
   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
 
 



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

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


[Sugar-devel] Fwd: The best place to learn interaction with the olpc journal ?

2011-06-21 Thread laurent bernabe
-- Forwarded message --
From: laurent bernabe laurent.bern...@gmail.com
Date: 2011/6/21
Subject: Re: [Sugar-devel] The best place to learn interaction with the olpc
journal ?
To: Walter Bender walter.ben...@gmail.com


Thank you very much :)

it seems that i was out of synchronization as you said (maybe because i put
back an old version when i reinstalled my computer, as i did not finish to
test all features before its crash)

The integration to the journal development is not hard : it's just that i'm
a bit absent-minded
Apologizes.

Regards


2011/6/21 Walter Bender walter.ben...@gmail.com

 On Tue, Jun 21, 2011 at 3:34 PM, laurent bernabe
 laurent.bern...@gmail.com wrote:
 
 
  2011/6/21 Walter Bender walter.ben...@gmail.com
 
  I am not sure I follow your intension here. I have been running your
  activity and although I haven't tested it extensively, when I relaunch
  from the Journal I get the drawing I made reloaded. When I add to that
  drawing and save, upon relaunch, I get the aggregate drawing. What
  behavior would you expect otherwise?
 
  That's exactly what i wanted to do, but i can't manage : so it's the
 journal
  using that i misunderstood. However i launched it with the restart button
  from the journal, and even with the restart from LearningWriting option.
 

 Maybe our versions got out of sync. I'll send you the code I am running.

 Meanwhile, I am having trouble with opening a .gph file -- a mimetype
 issue of some sort. Will investigate.

 -walter
 
   when I copy an entry from the journal to the USB key, it has the gph
   extension, but it appears as empty : screen capture is a green
   background
   (the standard background of my application). However, when i open it
   with a
   text editor from my linux host, it has text data. So i really think i
   have
   misunderstood the development of interaction with the journal
 
  I've not tested this. Will do and report back.
 
  regards.
 
  -walter
 
 
  Thank you :)
 
  Regards
 
 
  
   I apologize for what i've said in my recent post.
  
   Regards
  
   2011/6/21 James Simmons nices...@gmail.com
  
   Laurent,
  
   I thought I had covered what you need to know in MYOSA, but if it
   wasn't clear all you need to do to load a drawing that you created in
   your Activity is implement the
  
   def read_file(self, file_path):
  
   method.  That gets executed when your Activity gets loaded, and
   file_path will contain the data from your Journal entry.  You can
 also
   read metadata from the Journal entry here.
  
   When you close your Activity then the
  
   def write_file(self, filename):
  
   will save your drawing file as a Journal entry.  The write_file()
   method is also the place where you can set up metadata for your
   Journal entry.
  
   write_file() is also invoked when you switch the focus away from your
   Activity.
  
   That is all most Activities will ever need to do, but if you want to
   do more the chapter Fun With The Journal will give you the details.
  
   If there are features you need to know about that I didn't cover
 could
   you let me know what they are?
  
   James Simmons
  
  
   On Tue, Jun 21, 2011 at 12:59 PM, laurent bernabe
   laurent.bern...@gmail.com wrote:
Hello everyone,
   
I just would like to know where is the best place to learn
interaction
with
Sugar OLPC journal ?
Because I think that I've not  yet well understand the concept, for
my
project LearningWriting.
   
I've read the tutorial
http://en.flossmanuals.net/make-your-own-sugar-activities/, but it
does
not
seem to cover all features.
(I need to save my drawings and put them back in my application)
   
Regards
   
___
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
  
  
 
 
 
  --
  Walter Bender
  Sugar Labs
  http://www.sugarlabs.org
 
 



 --
 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] I reinstalled my system back to a previous image, but don't know where to put my public key for gitorious

2011-06-04 Thread laurent bernabe
Thank you :)
I managed my commit

(Sorry for the reply-all for the forgotten action)

Regards

2011/6/4 James Cameron qu...@laptop.org

 On Fri, Jun 03, 2011 at 11:12:07AM +0200, laurent bernabe wrote:
  Unfortunately, I still have problems for git commiting :
  fatal: protocol error: expected sha/ref, got '
  --
  The git:// url is read-only. Please see
 http://git.sugarlabs.org//learningwriting/learningwriting for the push
 url, if you're a committer.
  --'

 This is caused by you.  You had already cloned from
 git://git.sugarlabs.org/learningwriting/learningwriting.git
 and so the default for push is the same URL.

 The URL starting with git:// is for read only, not write.

 The tutorial says you should clone from an SSH URL, like this:

 git clone gitori...@git.sugarlabs.org:learningwriting/learningwriting.git
 learningwriting.git

 As a result, git push will return via SSH.

 Reference:

 http://wiki.sugarlabs.org/go/Activity_Team/Git_Tutorial#Create_Local_Repository

 p.s. again you did not reply-all!

 --
 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] I reinstalled my system back to a previous image, but don't know where to put my public key for gitorious

2011-06-04 Thread laurent bernabe
The fact is that i had not read well my repository page
= the ssh tabs give us the good adress, though the informations still says
us to use git:// adress.

But to the way of learning versions control, i've gone one step further.
Thanks :)

Regards

2011/6/4 James Cameron qu...@laptop.org

 On Fri, Jun 03, 2011 at 04:06:43PM +1000, James Cameron wrote:
  I'm shocked and surprised.  Why did you say no?  You should say yes at
  this point.  I can confirm that the RSA key fingerprint of
  git.sugarlabs.org is indeed what you see displayed.  Please try again,
  and this time say yes.

 It has been pointed out that this text of mine is open to an alternative
 interpretation of harshness.  That was not my intent.  I omitted several
 other emotions:

 - saddened that this use of SSH is so complex,

 - annoyed that I didn't think of this before,

 - irritated that mentoring a new developer to this point is far too
  complex.

 [/me turns to the new developer]  I think you have done well to get
 where you are, and I care enough to help you get further.  I don't like
 how complex it is.  While I can understand the complexity because of
 much practice, that doesn't mean the complexity is good.

 The use of GIT over SSH in this case seems to be an instance of the
 perfect being the enemy of the good, as Jim Gettys said in his Google
 talk recently.

 --
 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] LearningWriting development : I manage to save file to .gph, but reading a file clears its data.

2011-06-04 Thread laurent bernabe
Hello,


   - i've coded the write_file and read_file in my project LearningWriting,
   in Launcher.py module


   - I've added my new MIME type to project LearningWriting : *.gph which
   stands for application/x-graph

But, though i precised, when saving, that the mime type is
application/x-graph (codeself.metadata['mime_type'] =
'application/x-graph'/code), i'm unable to open the saved gph files.
Instead, it starts a new graph, with all data loosen.

And data are also loosen when i restart a LearningWriting instance from the
dropdown menu (either from F3 screen or from the HardDisk/USB Journal
screens).

So, what have i done wrong ?

Regards

P.S The changes have been commited in my gitorious account.
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] I reinstalled my system back to a previous image, but don't know where to put my public key for gitorious

2011-06-02 Thread laurent bernabe
Hello,


   - for my system instability, i fixed it by installing Xubuntu instead of
   Kubuntu (my laptop begins to be old). So another question come to me : if i
   change of computer, i presume that i will have to generate a new key pair
   (as the public key ends with my system account). Am i right ?
   - i generated a new keys pair, but i was still unable to confirm my key
   on sugar gitorious. I joined the script file of my terminal.

Regards

2011/6/2 James Cameron qu...@laptop.org

 On Wed, Jun 01, 2011 at 06:59:15PM +0200, laurent bernabe wrote:
  Is there a way to configure my repository with a new SSH keys pair ?

 You can configure your system with a new SSH key pair.

 Then you must configure gitorious by uploading the new public half of
 the SSH key.

 I don't think either your local system repository or the gitorious
 repository are ever configured with an SSH key.

  Because i erased the old public key in the public repository (that was
  before i read your answer) , replaced by a new public key = which i
  lost when my computer crashed one more time.
 
  What should i do ?

 You keep losing keys.  I suggest careful actions.  Different to normal
 actions because of your unusual environment.

 0.  remedy the cause of your computer crashing,

 1.  make a new SSH key pair,

 2.  copy the SSH key pair to more reliable media, such as a USB drive,
 or CD-R, or another computer via network, taking into account the risk
 of losing the key or having the key intercepted, (e.g. if you only use
 the key for gitorious, then the exposure risk is low.)

 3.  upload the public key again to gitorious,

 4.  confirm you can access gitorious using the private key you hold,

 5.  clone the public repository to a new directory,

 6.  resume development of the files.

 --
 James Cameron
 http://quozl.linux.org.au/

Le script a dƩbutƩ sur jeu. 02 juin 2011 09:42:58 CEST
]0;laurent@bordeaux8064: ~laurent@bordeaux8064:~$ ssh 
gitori...@git.sugarlabs.org true
The authenticity of host 'git.sugarlabs.org (18.85.44.120)' can't be 
established.
RSA key fingerprint is 4f:5e:5c:7f:ca:94:49:9d:2e:77:85:86:7c:de:56:f1.
Are you sure you want to continue connecting (yes/no)? no
Host key verification failed.

]0;laurent@bordeaux8064: ~laurent@bordeaux8064:~$ exit
exit

Script complƩtƩ sur jeu. 02 juin 2011 09:43:16 CEST
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


[Sugar-devel] Sharing a folder in VirtualBox Trisquel image, failed saying no such device

2011-06-02 Thread laurent bernabe
Hello,


   1. I installed VirtualBox 4.08 on mu Xubuntu and the Extensions Pack
   2. I installed Sugar OLPC Trisquel image and the Guest Additions
   3. I creating a shared folder called learningwriting pointing to my
   Xubuntu LearningWriting folder, with full access and without automatic
   mounting
   4. Back on Trisquel Image, i created a folder ~/learningwriting
   5. I tried sudo mount -t vboxsf learningwriting ~/learningwriting but i
   got the error : No such device

Does anyone know why ?

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


[Sugar-devel] Error with Virtual Box when trying to share a folder for the Trisquel Image (Guest additions already installed). How can i fix it ?

2011-06-01 Thread laurent bernabe
Hello,

i've just reinstalled virtualbox 4.08 on Kubuntu 11.04, with the extension
pack.
I also installed Guest Additions on the Sugar OLPC Trisquel image.
Then i added me in vboxusers (without restarting computer).

But when configuring image, i don't manage to share a folder
= Field Name of General page is imcomplete (My own translation of the
french message)
though i choosed the folder graphically.

What's wrong ? How can i fix it ?

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


Re: [Sugar-devel] Should or should not i use PyGTK = 2.4 widget ?

2011-05-31 Thread laurent bernabe
Thank you very much :)

This time severals instances of activities have their own drawings resumed.
:)

But is it possible to, from the journal interface, see the generated file
for a particular instance, so that i can transfer it to a folder, a usb key
(and so on ...) ? Because i would like children to be able to import easily
graphs files or graphs zip archives.

Regards

2011/5/31 Walter Bender walter.ben...@gmail.com



 On Mon, May 30, 2011 at 12:33 PM, laurent bernabe 
 laurent.bern...@gmail.com wrote:


 2011/5/30 Walter Bender walter.ben...@gmail.com



 On Mon, May 30, 2011 at 11:59 AM, laurent bernabe 
 laurent.bern...@gmail.com wrote:

 Hello

 I come back to this discussion, because there is another obscure point
 in my mind
 = Is it possible to write a file to a usb key, though the tutorial says
 that there the activity can only acess its data/instance/temp folder ?

 Apologizes if my question is too evident and unusefull . But i don't
 feel yet ready for developping serailisation/sharing part of my app


 No apology necessary.


 Than you


 The standard way to share to removable media in Sugar is to simply save
 as usual to the Journal. From the Journal, there are mechanisms for copying
 files to USB (and soon, $HOME/Documents and a remote server).


 Argh : perhaps i saved my file badly from the application to the journal
 because (though i surcharged the method write_file of activity.activity)

- in the journal (in its lits form, not graphical one) i can't see any
trace of saves in the dropdown menu, though i clicked on the activity keep
button
- maybe i did not use the journal in the good way, or it's because i
did not coded the algorithm well

 All changes have been made in the learning writing gitorious.

- Launcher is the class inherited from activity.activity
- TheDrawingAreaEventBox is the class which define the canvas, and in
which i defined the serialization to the Journal

 Could someone have a look at my code and say if i bad coded the
 serialization please ? Many thanks ( Hard beginnings for me ..., as i'm a
 quite modest programmer )

 Regards



 -walter


 Regards


 2011/5/29 laurent bernabe laurent.bern...@gmail.com

 ok, thank you.
 i'll have a look at the examples and try to find an example close to my
 needs.

 regards


 2011/5/28 Walter Bender walter.ben...@gmail.com



 On Sat, May 28, 2011 at 5:04 AM, laurent bernabe 
 laurent.bern...@gmail.com wrote:

 Thank you for your answers.
 But i am not sure i can do my task just with an ObjectChooser. And i
 need your advices for the strategy i should adopt :

- I want my application to save a graph by writing the
coordinates in a text file = i am conviced that for this tasks, i 
 should
use the folder data of the activity
- i want my application to load a graph from a previously
recorded graph
- but i also want the users to share other graphs each others :
more precisely, for users who don't have internet access (or for 
 later
systems restores, maybe after a crash, for example) to be able to 
 import
files from a usb key

 So, what is the best strategy in order to do these tasks and remain
 conform to Sugar best practices ?


 In general, using the Journal for these sorts of tasks is best
 practice in Sugar. You can  set a file path with your data associated 
 with
 your activity's datastore instance. That file can contain anything you 
 want.
 It is typical to have a method that overrides the builtin write_file 
 method
 -- called whenever the activity is either removed from the foreground or 
 the
 activity exits -- from which you save data.

 def write_file(self, file_path):
 ''' Write the project to the Journal. '''
...

 You can also set the mime type for this file, so as giving a hint as
 to what activities can subsequently open it.

 Lots of examples of this out there.

 -walter


 Regards


 2011/5/27 Bert Freudenberg b...@freudenbergs.de

 Step 1: search wiki for ObjectChooser.
 Step 2: find
 http://wiki.sugarlabs.org/go/Activity_Team/Object_Chooser
 Step 3: there is no step 3

 - Bert -

 On 27.05.2011, at 17:49, laurent bernabe wrote:

  Thank you.
 
  I've been on Sugar Almanach page in order to find ObjectChooser
 class, but i did not manage.
  (i've been here :
 http://wiki.sugarlabs.org/go/Development_Team/Almanac )
  Where should i look ?
 
  Regards
 
  2011/5/27 Gonzalo Odiard gonz...@laptop.org
  If you use a FileChooserDialog, you don't have integration with
 the Journal.
  You must use ObjectChooser.
 
  Gonzalo
 
  On Fri, May 27, 2011 at 11:56 AM, laurent bernabe 
 laurent.bern...@gmail.com wrote:
  Hello,
 
  i would like to use the FileChooserDialog in my application, which
 the PyGTK reference says it can be used with PyGTK = 2.4.
  Therefore, i wonder whereas oldest OLPC has already a PyGTK = 2.4
 version.
  So, is it all right ?
 
  Regards



 ___
 Sugar-devel

[Sugar-devel] I reinstalled my system back to a previous image, but don't know where to put my public key for gitorious

2011-05-31 Thread laurent bernabe
Hello,

after a serious crash on my system, i restored it from a previous state
thanks to Clonezilla
Unfortunately, in my last image, i did not save my git configuration.

I kept the public and the private key for my project LearningWriting, but i
don't know where to put them, so that i can't commit yet on my project.

Does someone know how i can manage ?

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


Re: [Sugar-devel] I reinstalled my system back to a previous image, but don't know where to put my public key for gitorious

2011-05-31 Thread laurent bernabe
I think i've done some things strange and unreversable

   - i deleted my public keys
   - i tried with a new one
   - but still unable to commit

Should i delete my project from the gitorious and create a new one for it ?

Regards

2011/5/31 laurent bernabe laurent.bern...@gmail.com

 Hello,

 after a serious crash on my system, i restored it from a previous state
 thanks to Clonezilla
 Unfortunately, in my last image, i did not save my git configuration.

 I kept the public and the private key for my project LearningWriting, but i
 don't know where to put them, so that i can't commit yet on my project.

 Does someone know how i can manage ?

 Regards

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


[Sugar-devel] Fwd: Should or should not i use PyGTK = 2.4 widget ?

2011-05-30 Thread laurent bernabe
-- Forwarded message --
From: laurent bernabe laurent.bern...@gmail.com
Date: 2011/5/30
Subject: Re: [Sugar-devel] Should or should not i use PyGTK = 2.4 widget ?
To: Walter Bender walter.ben...@gmail.com


Hello

I come back to this discussion, because there is another obscure point in my
mind
= Is it possible to write a file to a usb key, though the tutorial says
that there the activity can only acess its data/instance/temp folder ?

Apologizes if my question is too evident and unusefull . But i don't feel
yet ready for developping serailisation/sharing part of my app

Regards


2011/5/29 laurent bernabe laurent.bern...@gmail.com

 ok, thank you.
 i'll have a look at the examples and try to find an example close to my
 needs.

 regards


 2011/5/28 Walter Bender walter.ben...@gmail.com



 On Sat, May 28, 2011 at 5:04 AM, laurent bernabe 
 laurent.bern...@gmail.com wrote:

 Thank you for your answers.
 But i am not sure i can do my task just with an ObjectChooser. And i need
 your advices for the strategy i should adopt :

- I want my application to save a graph by writing the coordinates
in a text file = i am conviced that for this tasks, i should use the 
 folder
data of the activity
- i want my application to load a graph from a previously recorded
graph
- but i also want the users to share other graphs each others : more
precisely, for users who don't have internet access (or for later systems
restores, maybe after a crash, for example) to be able to import files 
 from
a usb key

 So, what is the best strategy in order to do these tasks and remain
 conform to Sugar best practices ?


 In general, using the Journal for these sorts of tasks is best practice in
 Sugar. You can  set a file path with your data associated with your
 activity's datastore instance. That file can contain anything you want. It
 is typical to have a method that overrides the builtin write_file method --
 called whenever the activity is either removed from the foreground or the
 activity exits -- from which you save data.

 def write_file(self, file_path):
 ''' Write the project to the Journal. '''
...

 You can also set the mime type for this file, so as giving a hint as to
 what activities can subsequently open it.

 Lots of examples of this out there.

 -walter


 Regards


 2011/5/27 Bert Freudenberg b...@freudenbergs.de

 Step 1: search wiki for ObjectChooser.
 Step 2: find http://wiki.sugarlabs.org/go/Activity_Team/Object_Chooser
 Step 3: there is no step 3

 - Bert -

 On 27.05.2011, at 17:49, laurent bernabe wrote:

  Thank you.
 
  I've been on Sugar Almanach page in order to find ObjectChooser class,
 but i did not manage.
  (i've been here :
 http://wiki.sugarlabs.org/go/Development_Team/Almanac )
  Where should i look ?
 
  Regards
 
  2011/5/27 Gonzalo Odiard gonz...@laptop.org
  If you use a FileChooserDialog, you don't have integration with the
 Journal.
  You must use ObjectChooser.
 
  Gonzalo
 
  On Fri, May 27, 2011 at 11:56 AM, laurent bernabe 
 laurent.bern...@gmail.com wrote:
  Hello,
 
  i would like to use the FileChooserDialog in my application, which the
 PyGTK reference says it can be used with PyGTK = 2.4.
  Therefore, i wonder whereas oldest OLPC has already a PyGTK = 2.4
 version.
  So, is it all right ?
 
  Regards



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




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



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


[Sugar-devel] I would like to change my project files hierarchy on gitorious

2011-05-29 Thread laurent bernabe
Dears,

i noticed that i was the only one to put python scripts files in deeper
packages (and i had problem to view my sources files once the application
tested on OLPC image). I've done so because i'm used to Java language.

That's the reason why i would like to erase deeper packages from my
gitorious project (LearningWriting) and put all python scripts in the root
folder of the project repository.
Is there a way to delete unused folders ?

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


Re: [Sugar-devel] Should or should not i use PyGTK = 2.4 widget ?

2011-05-28 Thread laurent bernabe
Thank you for your answers.
But i am not sure i can do my task just with an ObjectChooser. And i need
your advices for the strategy i should adopt :

   - I want my application to save a graph by writing the coordinates in a
   text file = i am conviced that for this tasks, i should use the folder data
   of the activity
   - i want my application to load a graph from a previously recorded
   graph
   - but i also want the users to share other graphs each others : more
   precisely, for users who don't have internet access (or for later systems
   restores, maybe after a crash, for example) to be able to import files from
   a usb key

So, what is the best strategy in order to do these tasks and remain conform
to Sugar best practices ?

Regards

2011/5/27 Bert Freudenberg b...@freudenbergs.de

 Step 1: search wiki for ObjectChooser.
 Step 2: find http://wiki.sugarlabs.org/go/Activity_Team/Object_Chooser
 Step 3: there is no step 3

 - Bert -

 On 27.05.2011, at 17:49, laurent bernabe wrote:

  Thank you.
 
  I've been on Sugar Almanach page in order to find ObjectChooser class,
 but i did not manage.
  (i've been here : http://wiki.sugarlabs.org/go/Development_Team/Almanac)
  Where should i look ?
 
  Regards
 
  2011/5/27 Gonzalo Odiard gonz...@laptop.org
  If you use a FileChooserDialog, you don't have integration with the
 Journal.
  You must use ObjectChooser.
 
  Gonzalo
 
  On Fri, May 27, 2011 at 11:56 AM, laurent bernabe 
 laurent.bern...@gmail.com wrote:
  Hello,
 
  i would like to use the FileChooserDialog in my application, which the
 PyGTK reference says it can be used with PyGTK = 2.4.
  Therefore, i wonder whereas oldest OLPC has already a PyGTK = 2.4
 version.
  So, is it all right ?
 
  Regards

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


[Sugar-devel] Should or should not i use PyGTK = 2.4 widget ?

2011-05-27 Thread laurent bernabe
Hello,

i would like to use the FileChooserDialog in my application, which the PyGTK
reference says it can be used with PyGTK = 2.4.
Therefore, i wonder whereas oldest OLPC has already a PyGTK = 2.4 version.
So, is it all right ?

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


Re: [Sugar-devel] Should or should not i use PyGTK = 2.4 widget ?

2011-05-27 Thread laurent bernabe
Thank you.

I've been on Sugar Almanach page in order to find ObjectChooser class, but i
did not manage.
(i've been here : http://wiki.sugarlabs.org/go/Development_Team/Almanac )
Where should i look ?

Regards

2011/5/27 Gonzalo Odiard gonz...@laptop.org

 If you use a FileChooserDialog, you don't have integration with the
 Journal.
 You must use ObjectChooser.

 Gonzalo

 On Fri, May 27, 2011 at 11:56 AM, laurent bernabe 
 laurent.bern...@gmail.com wrote:

 Hello,

 i would like to use the FileChooserDialog in my application, which the
 PyGTK reference says it can be used with PyGTK = 2.4.
 Therefore, i wonder whereas oldest OLPC has already a PyGTK = 2.4
 version.
 So, is it all right ?

 Regards

 ___
 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] I need to reinstall my computer, will the gitorious still be synchronized ?

2011-05-26 Thread laurent bernabe
Hello,

i need to reinstall my system, and switching from Kubuntu 11.04 to Ubuntu
11.04 = i will loose my developpment folder and its git configuration.
Will i be able to commit again the project LearningWriting.Activity if i put
back private key in the good folder ?

Apologizes if my question is bad told ? (And excuse me for my poor english)

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


Re: [Sugar-devel] I need to reinstall my computer, will the gitorious still be synchronized ?

2011-05-26 Thread laurent bernabe
I solved the problem for which i needed to reinstall my system
= in order to use log activity in KUBUNTU sugar emulator, i also needed to
install gnome-python2 package.

But i am always interested in the answer just for my knowledge :)

Regards

2011/5/26 laurent bernabe laurent.bern...@gmail.com

 Hello,

 i need to reinstall my system, and switching from Kubuntu 11.04 to Ubuntu
 11.04 = i will loose my developpment folder and its git configuration.
 Will i be able to commit again the project LearningWriting.Activity if i
 put back private key in the good folder ?

 Apologizes if my question is bad told ? (And excuse me for my poor english)

 Regards

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


Re: [Sugar-devel] I need to reinstall my computer, will the gitorious still be synchronized ?

2011-05-26 Thread laurent bernabe
Thank you,

anyway i need to commit to the remote repository, so i'll keep the two keys

Regards

2011/5/26 Walter Bender walter.ben...@gmail.com



 On Thu, May 26, 2011 at 6:19 AM, laurent bernabe 
 laurent.bern...@gmail.com wrote:

 I solved the problem for which i needed to reinstall my system
 = in order to use log activity in KUBUNTU sugar emulator, i also needed
 to install gnome-python2 package.

 But i am always interested in the answer just for my knowledge :)

 Regards


 2011/5/26 laurent bernabe laurent.bern...@gmail.com

 Hello,

 i need to reinstall my system, and switching from Kubuntu 11.04 to Ubuntu
 11.04 = i will loose my developpment folder and its git configuration.
 Will i be able to commit again the project LearningWriting.Activity if i
 put back private key in the good folder ?


 Your key determines if you have commit access to the remote repository. You
 can freely clone without your key and make local commits as well.

 -walter



 Apologizes if my question is bad told ? (And excuse me for my poor
 english)

 Regards



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




 --
 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] Generating a pot file without the setup script ?

2011-05-25 Thread laurent bernabe
It worked :) ! Thank you

2011/5/25 James Cameron qu...@laptop.org

 On Sat, May 21, 2011 at 07:30:04PM +0200, laurent bernabe wrote:
  I tried generating pot from sugar image, but i had a python error (i went
 in ~/
  Activities/LearningActivity.activity/ folder)
  $ ./setup.py genpot
  = errors :
   Traceback (most recent call last):
File ./setup.py, line 24, in module
  bundlebuilder.start()
File /opt/sweets/sugar-toolkit/src/sugar/activity/bundlebuilder.py,
 line
  382, in start
  globals()['cmd_' + args[0]](config, args[1:])
File /opt/sweets/sugar-toolkit/src/sugar/activity/bundlebuilder.py,
 line
  344, in cmd_genpot
  retcode = subprocess.call(args)
File /usr/lib/python2.6/subprocess.py, line 480, in call
  return Popen(*popenargs, **kwargs).wait()
File /usr/lib/python2.6/subprocess.py, line 633, in __init__
  errread, errwrite)
File /usr/lib/python2.6/subprocess.py, line 1139, in _execute_child
  raise child_exception
  OSError: [Errno 2] No such file or directory
 
  So, how could i correct it ?

 Install the gettext package.

 (The error shows that xgettext binary cannot be called by the
 subprocess.  I looked at line 382 in
 sugar-toolkit/src/sugar/activity/bundlebuilder.py to find out what it
 was doing and saw xgettext was referenced, so it is likely that you
 haven't got it installed.)

 --
 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] Generating a pot file without the setup script ?

2011-05-21 Thread laurent bernabe
Hello everyone,

i don't know if it is better to ask this question in devel-request or in
sugar-devel :
i want to generate the pot files for my application LearningWriting, but in
this tutorial :
http://en.flossmanuals.net/make-your-own-sugar-activities/ch013_going-international-with-pootle/they
talk about using the setup script.
But it seems to me that this script is only callable from an OLPC terminal
as it imports bundlebuilder from sugar-activity.
However, on my post, the sugar emulator is a trisquel image inside
VirtualBox.
So, i wonder, can i generate easily this pot file directly from my Kubuntu
host, without using setup script ?

Apologizes if my question is not accurate enough

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


Re: [Sugar-devel] Generating a pot file without the setup script ?

2011-05-21 Thread laurent bernabe
ok, i think i'll try to generate pot folder and file from Sugar Terminal,
and then transfer them to my Kubuntu host

2011/5/21 Walter Bender walter.ben...@gmail.com



 On Sat, May 21, 2011 at 12:49 PM, laurent bernabe 
 laurent.bern...@gmail.com wrote:

 Hello everyone,

 i don't know if it is better to ask this question in devel-request or in
 sugar-devel :
 i want to generate the pot files for my application LearningWriting, but
 in this tutorial :
 http://en.flossmanuals.net/make-your-own-sugar-activities/ch013_going-international-with-pootle/they
  talk about using the setup script.
 But it seems to me that this script is only callable from an OLPC terminal
 as it imports bundlebuilder from sugar-activity.
 However, on my post, the sugar emulator is a trisquel image inside
 VirtualBox.
 So, i wonder, can i generate easily this pot file directly from my Kubuntu
 host, without using setup script ?


 As you surmise, setup.py uses some Sugar dependencies. Why not just run it
 inside a terminal in the emulator? You don't need to run it often.

 -walter



 Apologizes if my question is not accurate enough

 Regards

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




 --
 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] Generating a pot file without the setup script ?

2011-05-21 Thread laurent bernabe
I tried generating pot from sugar image, but i had a python error (i went in
~/Activities/LearningActivity.activity/ folder)
$ ./setup.py genpot
= errors :
 Traceback (most recent call last):
  File ./setup.py, line 24, in module
bundlebuilder.start()
  File /opt/sweets/sugar-toolkit/src/sugar/activity/bundlebuilder.py, line
382, in start
globals()['cmd_' + args[0]](config, args[1:])
  File /opt/sweets/sugar-toolkit/src/sugar/activity/bundlebuilder.py, line
344, in cmd_genpot
retcode = subprocess.call(args)
  File /usr/lib/python2.6/subprocess.py, line 480, in call
return Popen(*popenargs, **kwargs).wait()
  File /usr/lib/python2.6/subprocess.py, line 633, in __init__
errread, errwrite)
  File /usr/lib/python2.6/subprocess.py, line 1139, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory

So, how could i correct it ?

2011/5/21 laurent bernabe laurent.bern...@gmail.com

 ok, i think i'll try to generate pot folder and file from Sugar Terminal,
 and then transfer them to my Kubuntu host


 2011/5/21 Walter Bender walter.ben...@gmail.com



 On Sat, May 21, 2011 at 12:49 PM, laurent bernabe 
 laurent.bern...@gmail.com wrote:

 Hello everyone,

 i don't know if it is better to ask this question in devel-request or in
 sugar-devel :
 i want to generate the pot files for my application LearningWriting, but
 in this tutorial :
 http://en.flossmanuals.net/make-your-own-sugar-activities/ch013_going-international-with-pootle/they
  talk about using the setup script.
 But it seems to me that this script is only callable from an OLPC
 terminal as it imports bundlebuilder from sugar-activity.
 However, on my post, the sugar emulator is a trisquel image inside
 VirtualBox.
 So, i wonder, can i generate easily this pot file directly from my
 Kubuntu host, without using setup script ?


 As you surmise, setup.py uses some Sugar dependencies. Why not just run it
 inside a terminal in the emulator? You don't need to run it often.

 -walter



 Apologizes if my question is not accurate enough

 Regards

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




 --
 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] gtk.RadioToolButton active property not recognized

2011-05-19 Thread laurent bernabe
Thank you very much
= i started the python interpreter, imported gtk and then i got, from
gtk.gtk_version command the tuple :
(2, 20, 1)

Regards

2011/5/19 James Cameron qu...@laptop.org

 On Wed, May 18, 2011 at 04:25:29PM +0200, laurent bernabe wrote:
  + going to install pygtk2-doc package on my sugar : is the best way to
  consult it is a text editor such as nano ?

 No.

 On a Debian derived system, the package name is python-gtk2-doc, and
 when it is installed the files can be listed with

dpkg --listfiles python-gtk2-doc

 There are example Python source files as well as reference and tutorial
 in HTML format.  To open the HTML documentation in a way that makes it
 easiest to use, start your web browser and navigate to the page

file:///usr/share/gtk-doc/html/pygtk/index.html

 For example

firefox file:///usr/share/gtk-doc/html/pygtk/index.html

 Regarding the version of GTK+ the advice I gave you was wrong ... I was
 asleep.  There was no reason for the -dev package to be present.  Try
 this:

dpkg-query -W -f='${Package} ${Version}\n' libgtk2.0\*

 Another way to find the version is with a Python program:

 print gtk.gtk_version
(2, 24, 3)

 And if you are writing code that depends on a particular version, you
 can call check_version

 gtk.check_version(2, 8, 0)
 gtk.check_version(0, 0, 0)
'Gtk+ version too new (major mismatch)'
 gtk.check_version(44,44,44)
'Gtk+ version too old (major mismatch)'

 --
 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] [sugar-devel] It is Python2.6 and GTK2.0

2011-05-18 Thread laurent bernabe
I could not find any line relating to pygtk in my trisquel image,
so that's why i were advised to search for python and gtk separately.

Regards

2011/5/18 James Cameron qu...@laptop.org

 Please don't change the subject line and start a new thread in the
 middle of a discussion.  It confuses readers and wastes time.

 On Tue, May 17, 2011 at 05:51:43PM +0200, laurent bernabe wrote:
  Thanks,
 
  my python version is 2.6
  and my gtk version is 2.0

 Okay, but that wasn't what you were asked.

 What is the python-gtk version?

 (I could download the image myself, but that's a big job for where I
 am).

 --
 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] [sugar-devel] It is Python2.6 and GTK2.0

2011-05-18 Thread laurent bernabe
I forgot to reply to CC (apologizes)

2011/5/18 laurent bernabe laurent.bern...@gmail.com

 Sorry for the subject changes (i am new in mailing-lists),
 in my knew subject, i posted the informations i got from image :
 = +++   Name VersionDescription
 un   python-gtk  No description  No description
 un   python-gtk-1.2No description  No description
 ii python-gtk22.17.0-0ubuntu2   Python bindings
 for GTK Widgets

 (the 2 other lines are about python-gtk2-doc and python-gtksourceview2, so
 i did not put details for these)

 Regards



 2011/5/18 laurent bernabe laurent.bern...@gmail.com

 I could not find any line relating to pygtk in my trisquel image,
 so that's why i were advised to search for python and gtk separately.

 Regards


 2011/5/18 James Cameron qu...@laptop.org

 Please don't change the subject line and start a new thread in the
 middle of a discussion.  It confuses readers and wastes time.

 On Tue, May 17, 2011 at 05:51:43PM +0200, laurent bernabe wrote:
  Thanks,
 
  my python version is 2.6
  and my gtk version is 2.0

 Okay, but that wasn't what you were asked.

 What is the python-gtk version?

 (I could download the image myself, but that's a big job for where I
 am).

 --
 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] gtk.RadioToolButton active property not recognized

2011-05-18 Thread laurent bernabe
Ok, here the result :

Desired=Unknown/Install/Remove/Purge/Hold
|
Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version  Description
+++---=
un  libgtksourceview2.0-dev  none   (no description
available)


2011/5/18 James Cameron qu...@laptop.org

 On Sat, May 14, 2011 at 11:51:05AM +0200, laurent bernabe wrote:
* in my application, i'm using two gtk.RadioToolButton
* the clicked handlers of the two RadioToolButton test the active
property of the event source (so, the RadioToolButton itself)
* but the SugarOLPC image logs reports me the error 
'gtk.RadioToolButton' has no attribute 'active' 
* however, the PyGTK reference manual says that 'active' is a
property of gtk.ToggleToolButton, from which RadioToolButton is
inherited and therefore, handlers are not properly executed
 
  So, what is my error ?

 You are using GTK+ version 2.0, according to your mail in another thread.

 You are using PyGTK version 2.17.0, according to your mail in another
 thread.

 The PyGTK 2.24.0 documentation for ToggleToolButton at
 http://developer.gnome.org/pygtk/stable/class-gtktoggletoolbutton.html
 has a note to the right of the active property which says This
 property is available in GTK+ 2.8 and above.  The implication is that
 the property is not available below GTK+ 2.8.  Since you have GTK+
 version 2.0, the property is expected to be unavailable.

 But it is surprising that you are using GTK+ version 2.0 ... could you
 please check this version number?  It would be easy for you to misread
 the output:

COLUMNS=120 dpkg --list libgtk\*-dev

 Here I see:

ii libgtk2.0-dev 2.24.3-1~sid1 Development files for the GTK+
 library

 Which means I am using version 2.24.3.  The 2.0 in the package name is
 not a version number.  This is an easy mistake to make.

 Assuming you are using a version of GTK+ of 2.8 or later, I see no
 explanation for your error.  I would need to see the source.  Please
 post a pointer to your git repository, or web page containing the
 source.

 By the way, you can obtain matching version documentation for PyGTK on
 your system by installing the package python-gtk2-doc, and then opening
 the files on the system rather than on internet.

 --
 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] gtk.RadioToolButton active property not recognized

2011-05-18 Thread laurent bernabe
Oups ! Forgotten CC reply

2011/5/18 laurent bernabe laurent.bern...@gmail.com

 Oh, i've forgotten

- i have not put source online yet : going to use git as soon as
possible (newbie here again)
- going to install pygtk2-doc package on my sugar : is the best way to
consult it is a text editor such as nano ?

 Regards


 2011/5/18 laurent bernabe laurent.bern...@gmail.com

 Ok, here the result :

 Desired=Unknown/Install/Remove/Purge/Hold
 |
 Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend
 |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
 ||/ Name Version  Description

 +++---=
 un  libgtksourceview2.0-dev  none   (no description
 available)



 2011/5/18 James Cameron qu...@laptop.org

  On Sat, May 14, 2011 at 11:51:05AM +0200, laurent bernabe wrote:
* in my application, i'm using two gtk.RadioToolButton
* the clicked handlers of the two RadioToolButton test the active
property of the event source (so, the RadioToolButton itself)
* but the SugarOLPC image logs reports me the error 
'gtk.RadioToolButton' has no attribute 'active' 
* however, the PyGTK reference manual says that 'active' is a
property of gtk.ToggleToolButton, from which RadioToolButton is
inherited and therefore, handlers are not properly executed
 
  So, what is my error ?

 You are using GTK+ version 2.0, according to your mail in another thread.

 You are using PyGTK version 2.17.0, according to your mail in another
 thread.

 The PyGTK 2.24.0 documentation for ToggleToolButton at
 http://developer.gnome.org/pygtk/stable/class-gtktoggletoolbutton.html
 has a note to the right of the active property which says This
 property is available in GTK+ 2.8 and above.  The implication is that
 the property is not available below GTK+ 2.8.  Since you have GTK+
 version 2.0, the property is expected to be unavailable.

 But it is surprising that you are using GTK+ version 2.0 ... could you
 please check this version number?  It would be easy for you to misread
 the output:

COLUMNS=120 dpkg --list libgtk\*-dev

 Here I see:

ii libgtk2.0-dev 2.24.3-1~sid1 Development files for the GTK+
 library

 Which means I am using version 2.24.3.  The 2.0 in the package name is
 not a version number.  This is an easy mistake to make.

 Assuming you are using a version of GTK+ of 2.8 or later, I see no
 explanation for your error.  I would need to see the source.  Please
 post a pointer to your git repository, or web page containing the
 source.

 By the way, you can obtain matching version documentation for PyGTK on
 your system by installing the package python-gtk2-doc, and then opening
 the files on the system rather than on internet.

 --
 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] no rpm command in my sugar trisquel image

2011-05-17 Thread laurent bernabe
Hello, i couldn't test the command rpm -qa | grep pygtk because there is
no rpm command in my sugar image

2011/5/17 James Cameron qu...@laptop.org

 On Mon, May 16, 2011 at 07:11:59PM +0200, laurent bernabe wrote:
  the reference i read is http://www.pygtk.org/docs/pygtk/index.html

 That is for the current version, 2.24.0.

  but i don't know yet how to check my sugar-olpc image pygtk version.
  What must i do in order to get it ?

 Use this compound command:

 % rpm -qa | grep pygtk

 For me, this shows:

 pygtk2-2.17.0-9.fc14.i686
 pygtksourceview-2.10.1-2.fc14.i686

 Which means I have 2.17.0 installed.

 In future please reply CC mailing list.  Why?  See
 http://pptpclient.sourceforge.net/why.phtml
 (different project, but same communication techniques)

 --
 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] [sugar-devel] Does not work neither with dpkg

2011-05-17 Thread laurent bernabe
Neither,

it returns me a blank line (i haven't done any typo in terminal)

2011/5/17 Rodolfo D. Arce S. rodolfo.arc...@gmail.com

 For Debian:

 sudo dpkg --get-selections | grep pygtk

 This might work

 cheers.. R


 2011/5/17 Peter Robinson pbrobin...@gmail.com

 I believe trisquel is based on debian or ubuntu so you'll have to use
 what ever package manager they use.

 Peter

 On Tue, May 17, 2011 at 2:06 PM, laurent bernabe
 laurent.bern...@gmail.com wrote:
  Hello, i couldn't test the command rpm -qa | grep pygtk because there
 is
  no rpm command in my sugar image
 
  2011/5/17 James Cameron qu...@laptop.org
 
  On Mon, May 16, 2011 at 07:11:59PM +0200, laurent bernabe wrote:
   the reference i read is http://www.pygtk.org/docs/pygtk/index.html
 
  That is for the current version, 2.24.0.
 
   but i don't know yet how to check my sugar-olpc image pygtk version.
   What must i do in order to get it ?
 
  Use this compound command:
 
  % rpm -qa | grep pygtk
 
  For me, this shows:
 
  pygtk2-2.17.0-9.fc14.i686
  pygtksourceview-2.10.1-2.fc14.i686
 
  Which means I have 2.17.0 installed.
 
  In future please reply CC mailing list.  Why?  See
  http://pptpclient.sourceforge.net/why.phtml
  (different project, but same communication techniques)
 
  --
  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




 --
 *Rodolfo D. Arce S.*
 web: rodolfoarce.com
 twitter: @rodolfoarces http://twitter.com/rodolfoarces




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


Re: [Sugar-devel] [sugar-devel] It is Python2.6 and GTK2.0

2011-05-17 Thread laurent bernabe
Thanks,

my python version is 2.6
and my gtk version is 2.0

Regards

2011/5/17 Rodolfo D. Arce S. rodolfo.arc...@gmail.com

 Perhaps if you separate the search terms

 dpkg --get-selections |grep python

 dpkg --get-selections |grep gtk

 cheers.. R


 2011/5/17 laurent bernabe laurent.bern...@gmail.com

 Neither,

 it returns me a blank line (i haven't done any typo in terminal)

 2011/5/17 Rodolfo D. Arce S. rodolfo.arc...@gmail.com

 For Debian:

 sudo dpkg --get-selections | grep pygtk

 This might work

 cheers.. R


 2011/5/17 Peter Robinson pbrobin...@gmail.com

 I believe trisquel is based on debian or ubuntu so you'll have to use
 what ever package manager they use.

 Peter

 On Tue, May 17, 2011 at 2:06 PM, laurent bernabe
 laurent.bern...@gmail.com wrote:
  Hello, i couldn't test the command rpm -qa | grep pygtk because
 there is
  no rpm command in my sugar image
 
  2011/5/17 James Cameron qu...@laptop.org
 
  On Mon, May 16, 2011 at 07:11:59PM +0200, laurent bernabe wrote:
   the reference i read is http://www.pygtk.org/docs/pygtk/index.html
 
  That is for the current version, 2.24.0.
 
   but i don't know yet how to check my sugar-olpc image pygtk
 version.
   What must i do in order to get it ?
 
  Use this compound command:
 
  % rpm -qa | grep pygtk
 
  For me, this shows:
 
  pygtk2-2.17.0-9.fc14.i686
  pygtksourceview-2.10.1-2.fc14.i686
 
  Which means I have 2.17.0 installed.
 
  In future please reply CC mailing list.  Why?  See
  http://pptpclient.sourceforge.net/why.phtml
  (different project, but same communication techniques)
 
  --
  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




 --
 *Rodolfo D. Arce S.*
 web: rodolfoarce.com
 twitter: @rodolfoarces http://twitter.com/rodolfoarces







 --
 *Rodolfo D. Arce S.*
 web: rodolfoarce.com
 twitter: @rodolfoarces http://twitter.com/rodolfoarces




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


[Sugar-devel] Sugar, PyGTK and Threadings

2011-05-15 Thread laurent bernabe
Hello everyone,

in my application i'm developping using PyGTK, i want to use a separate
Thread to do some stuffs on the application canvas (which on my application
is set to a gtk.DrawingArea).
So i've read the PyGTK FAQ, particularly this page :PyGTK FAQ Question
20.06http://faq.pygtk.org/index.py?req=showfile=faq20.006.htp

But i wonder if i still need to call *gobject.threads_init() *in the main
module of my bundle (the one that is declared in the activity.info) as it is
inherited from sugar.activity.activity.Activity class
That is : does the sugar.activity.activity.Activity already does the work
for me ? Or where should i call threads_init() (as i don't call gtk.main()
myself) ?

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


[Sugar-devel] gtk.RadioToolButton active property not recognized

2011-05-14 Thread laurent bernabe
Hello everyone,


   - in my application, i'm using two gtk.RadioToolButton
   - the clicked handlers of the two RadioToolButton test the active
   property of the event source (so, the RadioToolButton itself)
   - but the SugarOLPC image logs reports me the error 
   'gtk.RadioToolButton' has no attribute 'active' 
   - however, the PyGTK reference manual says that 'active' is a property of
   gtk.ToggleToolButton, from which RadioToolButton is inherited and therefore,
   handlers are not properly executed

So, what is my error ?

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


[Sugar-devel] Why i cannot read the sources of my bundle in the olpc emulator ?

2011-05-13 Thread laurent bernabe
Hello everyone,

I've developped a little version of my new project for sugar.
But after having installed it on the trisquel olpc (in VirtualBox : Kubuntu
Host) by sugar-install-bundle command, i can't read the sources by context
menu as it is possible for preinstalled activities.

Does someone know why ?

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


<    1   2   3   4