[Zope-dev] masquerading python products as functions
Lalo Martins
lalo@hackandroll.org
Thu, 12 Jul 2001 00:44:59 -0300
On Wed, Jul 11, 2001 at 11:38:20PM +1200, Mick wrote:
> Hi,
>
> I am trying to make a product act like an external method, or dtmlmethod.
> Basically I have taken the minimal product and added a __call__ function.
> It works fine, and can be called as a function of the object that contains
> it. The problem is that the minimal objects namespace is also pushed onto
> the stack, and to get out of it I need to go through self.aq_parent.
You may want to try out Shared.DC.Scripts.Script.
I have a (preliminary) HOWTO at
http://www.zope.org/Members/lalo/scriptclass-dev
[]s,
|alo
+----
--
http://www.laranja.org/ mailto:lalo@laranja.org
pgp key: http://www.laranja.org/pessoal/pgp
Brazil of Darkness (RPG) --- http://www.BroDar.org/