[Zope] for ... in or aq_acquire arguments ?

Dieter Maurer dieter@handshake.de
Mon, 3 Feb 2003 20:26:47 +0100


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 _getProductRegistryData 
 > of self but what is "'zclasses'" is it anargumet for the for loop or for 
 > the aq_acquire method ?
 > I serached for the syntax of aq_acquire and for..in and i did'nt find 
 > 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"...


Dieter