Re: [Zope] Name lookup emulation with a Product

2000-10-17 Thread Chris Withers
Pierre-Julien Grizel wrote: > > I looked at the __call__ method (and read the 'isDocTemp' thread ;-) ) > and, if I must, I can replace m1 and m2 with a __call__ method taking > another parameter specifying what kind of action it has to do. > Well, there's another little gem which got covered i

Re: [Zope] Name lookup emulation with a Product

2000-10-05 Thread Pierre-Julien Grizel
Chris Withers wrote: > > Pierre-Julien Grizel wrote: > > > > I want my product to be callable with two method, say "m1" and "m2", > > that perform different tasks. > > How would these methods be called? > > Chris Well, I've got my product P somewhere in my object hierarchy. Its methods _shou

Re: [Zope] Name lookup emulation with a Product

2000-10-05 Thread Chris Withers
Pierre-Julien Grizel wrote: > > I want my product to be callable with two method, say "m1" and "m2", > that perform different tasks. How would these methods be called? Chris ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listin

Re: [Zope] Name lookup emulation with a Product

2000-10-05 Thread Pierre-Julien Grizel
Chris Withers wrote: > > Pierre-Julien Grizel wrote: > > > > Hi, > > > > I'd like to perform a name lookup inside a product, relying on > > acquisition, property and REQUEST lookups. > > Are you talking about a python product's __call__ method, by any chance? > > Chris Ahem... Not exactly...

Re: [Zope] Name lookup emulation with a Product

2000-10-05 Thread Chris Withers
Pierre-Julien Grizel wrote: > > Hi, > > I'd like to perform a name lookup inside a product, relying on > acquisition, property and REQUEST lookups. Are you talking about a python product's __call__ method, by any chance? Chris ___ Zope maillist -

[Zope] Name lookup emulation with a Product

2000-10-05 Thread Pierre-Julien Grizel
Hi, I'd like to perform a name lookup inside a product, relying on acquisition, property and REQUEST lookups. In fact, I want to use the DTML Reference / Table 7 schema to look-up variables. I know how to perform REQUEST lookups. I know how to perform object properties lookups. I know how to