[Sugar-devel] Journal Implementation Help

2010-06-15 Thread Quoc-Bao Vuong
I'm a student from Arlington and am spending full-time this week and next working on the IRC Activity. I'm trying to implement this feature: http://bugs.sugarlabs.org/ticket/581 - which is to have the IRC Activity recover some information from the Journal when a saved instance is resumed (namely,

Re: [Sugar-devel] Journal Implementation Help

2010-06-15 Thread Walter Bender
On Tue, Jun 15, 2010 at 12:37 PM, Quoc-Bao Vuong vq...@lv5.org wrote: I'm a student from Arlington and am spending full-time this week and next working on the IRC Activity. I'm trying to implement this feature: http://bugs.sugarlabs.org/ticket/581 - which is to have the IRC Activity recover

Re: [Sugar-devel] Journal Implementation Help

2010-06-15 Thread James Simmons
Activity. I store the last page number read at the tail end of the title. James Simmons Date: Tue, 15 Jun 2010 12:37:32 -0400 From: Quoc-Bao Vuong vq...@lv5.org Subject: [Sugar-devel] Journal Implementation Help To: sugar-devel@lists.sugarlabs.org Message-ID

Re: [Sugar-devel] Journal Implementation Help

2010-06-15 Thread James Cameron
On Tue, Jun 15, 2010 at 12:37:32PM -0400, Quoc-Bao Vuong wrote: When making the write_file(), I was able to read in the current nickname, server, and channels. When I try putting them back in when opening the latest journal, I just get the default settings. Default nickname, default server,

[Sugar-devel] Journal Implementation

2010-06-10 Thread Quoc-Bao Vuong
Hello, my name is Bao Vuong. I am trying to implement a feature to the irc that lets a journal entry store the nickname and channels. I read that I need to define read_file and write_file methods. Are there any simple examples I can use? Or a tutorial of how to make one to work? Thank you.

Re: [Sugar-devel] Journal Implementation

2010-06-10 Thread Michael Stone
Hello, my name is Bao Vuong. I am trying to implement a feature to the irc that lets a journal entry store the nickname and channels. I read that I need to define read_file and write_file methods. Are there any simple examples I can use? Or a tutorial of how to make one to work? Dear Pippy

Re: [Sugar-devel] Journal Implementation

2010-06-10 Thread Anish Mangal
Hi, A nicely commented example (courtesy Dinko Galetic) demonstrating file operations such as reading and writing can be found here [1]. You may also find this documentation [2] on the python website useful. -- Cheers, Anish [1]

Re: [Sugar-devel] Journal Implementation

2010-06-10 Thread Martin Abente
Take a look at this hello world activity, hopefully is what you need http://oficina.paraguayeduca.org/~mabente/codesnacks/sugar/HelloWorldDS.activity.tar.bz2 On Thu, 2010-06-10 at 10:38 -0400, Quoc-Bao Vuong wrote: Hello, my name is Bao Vuong. I am trying to implement a feature to the irc that

Re: [Sugar-devel] Journal Implementation

2010-06-10 Thread James Simmons
Bao, Have I got a manual for you! http://en.flossmanuals.net/ActivitiesGuideSugar/Introduction James Simmons Date: Thu, 10 Jun 2010 10:38:45 -0400 From: Quoc-Bao Vuong vq...@lv5.org Subject: [Sugar-devel] Journal Implementation To: sugar-devel@lists.sugarlabs.org Message-ID