[Zope] for ... in or aq_acquire arguments ?
D2
borelan@wanadoo.fr
Tue, 04 Feb 2003 09:26:05 -0400
Dieter Maurer a =E9crit:
> D2 wrote at 2003-2-3 10:47 -0400:
> > in this line
> > for data in self.aq_acquire('_getProductRegistryData')('zclasses'):
> >
> > i suppose that aq_acquire returns the value of=20
_getProductRegistryData
OK, the method itself is returned, not the value.
> > of self but what is "'zclasses'" is it anargumet for the for loop=20
or for
> > the aq_acquire method ?
> > I serached for the syntax of aq_acquire and for..in and i did'nt fi=
nd
> > this syntax for expression in (expression_list) (something_else):
> You search in the wrong direction....
>
> "_getProductRegistryData" happens to be a function
> which you can call with "'zclasses'" as parameter.
>
> No magic related to "aq_acquire"...
Oh! so that means that the _getProductRegistryData is called (acquired)
=66rom self and that ('zclasses') is passed as a parameter.
But why not using it that way : self._getProductRegistryData('zclasses) ?
>
>
> Dieter
>
--=20
Andre