Re: [Sugar-devel] ObjectChooser() Issue?

2010-11-21 Thread James Cameron
On Sat, Nov 20, 2010 at 04:37:24PM -0500, Art Hunkins wrote: > This code tests for the presence of an XO-1 (thanks originally to Walter): > > if os.path.exists("/sys/power/olpc-pm"): > > Normally this is also a test for Sugar 0.82. I want, however, also > to test for Sugar *upgrades* on the XO-

Re: [Sugar-devel] ObjectChooser() Issue?

2010-11-20 Thread Walter Bender
ally a hardware > or a software test?) > > Art Hunkins > > - Original Message - From: "Sascha Silbe" > > To: "sugar-devel" > Sent: Saturday, November 20, 2010 3:38 AM > Subject: Re: [Sugar-devel] ObjectChooser() Issue? > > >> _

Re: [Sugar-devel] ObjectChooser() Issue?

2010-11-20 Thread Art Hunkins
To: "sugar-devel" Sent: Saturday, November 20, 2010 3:38 AM Subject: Re: [Sugar-devel] ObjectChooser() Issue? ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel

Re: [Sugar-devel] ObjectChooser() Issue?

2010-11-20 Thread Sascha Silbe
Excerpts from Art Hunkins's message of Sat Nov 20 05:13:30 +0100 2010: > I think I may have answered my previous question: "Feature unavailable in > Sugar 0.82." FWIW, I think this is the right thing to do from a development PoV. The wording is fine, too. It will also increase the incentive for

Re: [Sugar-devel] ObjectChooser() Issue?

2010-11-19 Thread Art Hunkins
quot; ; "sugar-devel" Sent: Friday, November 19, 2010 1:13 PM Subject: Re: [Sugar-devel] ObjectChooser() Issue? On Fri, Nov 19, 2010 at 1:12 PM, Art Hunkins wrote: Sascha, Thanks to you and other members of this listserv I've now got multiple instances of ObjectChooser() run

Re: [Sugar-devel] ObjectChooser() Issue?

2010-11-19 Thread Walter Bender
something appropriate)? > > Thanks again for your help. > > Art Hunkins > > - Original Message - From: "Sascha Silbe" > > To: "sugar-devel" > Sent: Sunday, November 14, 2010 6:00 PM > Subject: Re: [Sugar-devel] ObjectChooser()

Re: [Sugar-devel] ObjectChooser() Issue?

2010-11-19 Thread Art Hunkins
ot;Feature unavailable on XO-1" or "Feature unavailable in Sugar 0.82" or what (please suggest something appropriate)? Thanks again for your help. Art Hunkins - Original Message - From: "Sascha Silbe" To: "sugar-devel" Sent: Sunday, Novemb

Re: [Sugar-devel] ObjectChooser() Issue?

2010-11-15 Thread Bert Freudenberg
On 15.11.2010, at 00:00, Sascha Silbe wrote: > Excerpts from Art Hunkins's message of Sun Nov 14 23:20:49 +0100 2010: > >> The jobject is being selected just fine; the problem is, it is still being >> deleted, even though I'm trying to store its path. > > That's exactly the problem: You need t

Re: [Sugar-devel] ObjectChooser() Issue?

2010-11-14 Thread Sascha Silbe
Excerpts from Art Hunkins's message of Sun Nov 14 23:20:49 +0100 2010: > #Declarations >self.file = [0, 0, 0, 0] >self.fileflag = ["0", "0", "0", "0"] FWIW, this looks rather strange. You might want to choose a different approach once you got the Object Chooser part working. > def choos

Re: [Sugar-devel] ObjectChooser() Issue?

2010-11-14 Thread Art Hunkins
jobjects"? The above code sends a reasonable filename, I get "DSobject was deleted", or some such error message. Hopefully, with your help, I can get this thorny issue behind me soon. Art Hunkins - Original Message - From: "Aleksey Lim" To: "Gonzalo

Re: [Sugar-devel] ObjectChooser() Issue?

2010-11-11 Thread Sascha Silbe
Excerpts from James Simmons's message of Tue Nov 09 19:37:01 +0100 2010: > > One thing I noted when I tried to read paths from Journal entries is > > that they don't stay valid forever.  I think they are symbolic links > > to the actual file. Almost right: we are using hard links. In general, act

Re: [Sugar-devel] ObjectChooser() Issue?

2010-11-09 Thread Aleksey Lim
On Tue, Nov 09, 2010 at 03:10:56PM -0300, Gonzalo Odiard wrote: > On Tue, Nov 9, 2010 at 3:04 PM, Aleksey Lim wrote: > > > On Mon, Nov 08, 2010 at 01:01:02PM -0500, Art Hunkins wrote: > > > At Sasha's suggestion, I've arrived at the following code to send the > > > filepath of a soundfile to Csou

Re: [Sugar-devel] ObjectChooser() Issue?

2010-11-09 Thread James Simmons
the name works fine; Csound just can't open the file. And the only >> files I seem to be able to *open* are the ones I place in the activity's >> folder and hardcode in Csound. >> >> Thanks so much for your help. Do you have any idea whether using *your* >> Jour

Re: [Sugar-devel] ObjectChooser() Issue?

2010-11-09 Thread Gonzalo Odiard
On Tue, Nov 9, 2010 at 3:04 PM, Aleksey Lim wrote: > On Mon, Nov 08, 2010 at 01:01:02PM -0500, Art Hunkins wrote: > > At Sasha's suggestion, I've arrived at the following code to send the > > filepath of a soundfile to Csound via its reference in the Journal. The > > filename (self.filename[0]) i

Re: [Sugar-devel] ObjectChooser() Issue?

2010-11-09 Thread Aleksey Lim
On Mon, Nov 08, 2010 at 01:01:02PM -0500, Art Hunkins wrote: > At Sasha's suggestion, I've arrived at the following code to send the > filepath of a soundfile to Csound via its reference in the Journal. The > filename (self.filename[0]) is being correctly passed: > > def choose1(self, widget):

[Sugar-devel] ObjectChooser() Issue?

2010-11-08 Thread Art Hunkins
At Sasha's suggestion, I've arrived at the following code to send the filepath of a soundfile to Csound via its reference in the Journal. The filename (self.filename[0]) is being correctly passed: def choose1(self, widget): chooser = ObjectChooser(parent=self, what_filter=mime.GENERIC_TYPE_AU