Re: Cast into custom type

2009-11-04 Thread Henning Bredel
Gabriel, thanks for your reply. See my comments below. On Tue, 03 Nov 2009 21:31:27 -0300, Gabriel Genellina wrote: En Tue, 03 Nov 2009 09:07:01 -0300, Henning Bredel henning.bre...@gmx.de escribió: On Tue, 03 Nov 2009 10:18:29 +, Steven D'Aprano wrote: Then forget about the code you

Cast into custom type

2009-11-03 Thread Henning Bredel
Hi, I created a plugin mechanism for my application orientating at the mechanism described by Martin Alchy in http://martyalchin.com/2008/jan/10/simple-plugin-framework/ Now I'd like to call methods like `initialize(parent)' when the user chooses to use a plugin. As described in the blog

Re: Cast into custom type

2009-11-03 Thread Diez B. Roggisch
Henning Bredel schrieb: Hi, I created a plugin mechanism for my application orientating at the mechanism described by Martin Alchy in http://martyalchin.com/2008/jan/10/simple-plugin-framework/ Now I'd like to call methods like `initialize(parent)' when the user chooses to use a plugin. As

Re: Cast into custom type

2009-11-03 Thread Gabriel Genellina
En Tue, 03 Nov 2009 06:41:37 -0300, Henning Bredel henning.bre...@gmx.de escribió: I created a plugin mechanism for my application orientating at the mechanism described by Martin Alchy in http://martyalchin.com/2008/jan/10/simple-plugin-framework/ Now I'd like to call methods like

Re: Cast into custom type

2009-11-03 Thread Steven D'Aprano
On Tue, 03 Nov 2009 09:41:37 +, Henning Bredel wrote: Hi, I created a plugin mechanism for my application orientating at the mechanism described by Martin Alchy in http://martyalchin.com/2008/jan/10/simple-plugin-framework/ Regarding your subject line, Python doesn't have casts. A

Re: Cast into custom type

2009-11-03 Thread Henning Bredel
Diez, Gabriel, Steven, thanks for your answers. I'll mainly give response in this posting, so I hope not repeating myself. On Tue, 03 Nov 2009 10:18:29 +, Steven D'Aprano wrote: On Tue, 03 Nov 2009 09:41:37 +, Henning Bredel wrote: Now I'd like to call methods like

Re: Cast into custom type

2009-11-03 Thread Gabriel Genellina
En Tue, 03 Nov 2009 09:07:01 -0300, Henning Bredel henning.bre...@gmx.de escribió: On Tue, 03 Nov 2009 10:18:29 +, Steven D'Aprano wrote: You need to give some actual examples of what you are trying to do, and what you are expecting to happen. How is initialized() being called?