[Zope-Coders] SimpleItem.getId busted

Florent Guillaume fg at nuxeo.com
Thu Nov 20 14:02:56 EST 2003


Casey Duncan wrote:
>>Beware, if id is callable you'll end up calling aq_base(self).id() and
>>not self.id() which can make a big difference...
> 
> Why would you want to call an acquired id method? Are you creating python scripts named id? ;^)

No but the computations inside id() may need to use the wrapped self to 
get further in the acquisition context.

Well ok maybe that's not something that will happen for id(), but for 
other kinds of method it's important.

Florent

-- 
Florent Guillaume, Nuxeo (Paris, France)
+33 1 40 33 79 87  http://nuxeo.com  mailto:fg at nuxeo.com




More information about the Zope-Coders mailing list