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 richard.j.d...@gmail.com 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 Dale

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) polentino...@gmail.com wrote: -- Messaggio inoltrato -- From: Richard Dale richard.j.d...@gmail.com To: plasma-de...@kde.org Date: Thu, 11 Feb 2010 18:37:55 + Subject: Re: [PATCH] Support for arbitrary main

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

2010-02-12 Thread Richard Dale
, 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 Beltrame ei...@heavensinferno.net wrote: Hello, currently if you use Python plasmoids the main script *must* be named main.py because

[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

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 will not

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

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 ei...@heavensinferno.net 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

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

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 richard.j.d...@gmail.com 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 Beltrame ei

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 ei...@heavensinferno.net 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, Aaron J. Seigo