[Zope-dev] masquerading python products as functions
Mick
vsl6@paradise.net.nz
Fri, 13 Jul 2001 00:41:19 +1200
Thanks for all the pointers. I found the thread that Dieter was mentioning
and it was very good. Interesting to follow Chris's process of
enlightenment, just what I needed. This Python script solution below looks
interesting too, so I must follow that up. Toby Dickenson's wrapper is very
nice ... http://www.zope.org/Members/htrd/howto/FunctionTemplate
thanks
Mick
> -----Original Message-----
> From: zope-dev-admin@zope.org [mailto:zope-dev-admin@zope.org]On Behalf
> Of Lalo Martins
> Sent: Thursday, July 12, 2001 3:45 PM
> To: zope-dev@zope.org
> Subject: Re: [Zope-dev] masquerading python products as functions
>
>
> 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/
>
> _______________________________________________
> Zope-Dev maillist - Zope-Dev@zope.org
> http://lists.zope.org/mailman/listinfo/zope-dev
> ** No cross posts or HTML encoding! **
> (Related lists -
> http://lists.zope.org/mailman/listinfo/zope-announce
> http://lists.zope.org/mailman/listinfo/zope )
>