Subject: Re: Subject: Re: [PATCH] Support for arbitrary main script names in Python plasmoids

2010-02-13 Thread Diego Casella ([Po]lentino)
> -- Messaggio inoltrato -- > From: Richard Dale > To: plasma-devel@kde.org > Date: Fri, 12 Feb 2010 23:59:06 + > Subject: Re: Subject: Re: [PATCH] Support for arbitrary main script names > in Python plasmoids > On Fri, Feb 12, 2010 at 10:17 AM, Richard

Re: Subject: Re: [PATCH] Support for arbitrary main script names in Python plasmoids

2010-02-12 Thread Richard Dale
010 18:37:55 + >>> Subject: Re: [PATCH] Support for arbitrary main script names in Python >>> plasmoids >>> On Thu, Feb 11, 2010 at 6:02 PM, Luca Beltrame >>> wrote: >>> > Hello, >>> > >>> > currently if you use Python plasm

Re: Subject: Re: [PATCH] Support for arbitrary main script names in Python plasmoids

2010-02-12 Thread Richard Dale
On Thu, Feb 11, 2010 at 11:34 PM, Diego Casella ([Po]lentino) wrote: >> -- Messaggio inoltrato -- >> From: Richard Dale >> To: plasma-de...@kde.org >> Date: Thu, 11 Feb 2010 18:37:55 +0000 >> Subject: Re: [PATCH] Support for arbitrary main scrip

Subject: Re: [PATCH] Support for arbitrary main script names in Python plasmoids

2010-02-11 Thread Diego Casella ([Po]lentino)
> > -- Messaggio inoltrato -- > From: Luca Beltrame > To: plasma-devel@kde.org > Date: Thu, 11 Feb 2010 19:32:13 +0100 > Subject: Re: [PATCH] Support for arbitrary main script names in Python > plasmoids > In data giovedì 11 febbraio 2010 19:16:53, A

Subject: Re: [PATCH] Support for arbitrary main script names in Python plasmoids

2010-02-11 Thread Diego Casella ([Po]lentino)
> > -- Messaggio inoltrato -- > From: Richard Dale > To: plasma-devel@kde.org > Date: Thu, 11 Feb 2010 18:37:55 + > Subject: Re: [PATCH] Support for arbitrary main script names in Python > plasmoids > On Thu, Feb 11, 2010 at 6:02 PM, Luca Belt

Re: [PATCH] Support for arbitrary main script names in Python plasmoids

2010-02-11 Thread Luca Beltrame
In data giovedì 11 febbraio 2010 19:37:55, Richard Dale ha scritto: > __dict__, but simply derives the main class name from the main script > name. So I wasn't sure is you should specifiy a main *class* name in This is what is done with my change, at the moment (I used __dict__ because I thought

Re: [PATCH] Support for arbitrary main script names in Python plasmoids

2010-02-11 Thread Richard Dale
On Thu, Feb 11, 2010 at 6:02 PM, Luca Beltrame wrote: > Hello, > > currently if you use Python plasmoids the main script *must* be named > "main.py" because it is hardcoded into pyappletscripts.py. When using a > different mainscript in the .desktop file (like Plasmate does) this will > ensure the

Re: [PATCH] Support for arbitrary main script names in Python plasmoids

2010-02-11 Thread Luca Beltrame
In data giovedì 11 febbraio 2010 19:16:53, Aaron J. Seigo ha scritto: > i can't comment on the use of __dict__ (my python-fu is non-existent :) but > using mainScript() is obviously correct from a libplasma API usage > perspective and if this fixes things then yes it should be backported. Just te

Re: [PATCH] Support for arbitrary main script names in Python plasmoids

2010-02-11 Thread Aaron J. Seigo
On February 11, 2010, Luca Beltrame wrote: > Hello, > > currently if you use Python plasmoids the main script *must* be named > "main.py" because it is hardcoded into pyappletscripts.py. When using a > different mainscript in the .desktop file (like Plasmate does) this will > ensure the plasmoid w

[PATCH] Support for arbitrary main script names in Python plasmoids

2010-02-11 Thread Luca Beltrame
Hello, currently if you use Python plasmoids the main script *must* be named "main.py" because it is hardcoded into pyappletscripts.py. When using a different mainscript in the .desktop file (like Plasmate does) this will ensure the plasmoid will not run (you get a NameError exception). The at