[Zope-Coders] SimpleItem.getId busted
Casey Duncan
casey at zope.com
Thu Nov 20 14:12:43 EST 2003
On Thu, 20 Nov 2003 20:02:56 +0100
Florent Guillaume <fg at nuxeo.com> wrote:
> 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.
Sure, ok.
> Well ok maybe that's not something that will happen for id(), but for
> other kinds of method it's important.
No I think I agree with you, it should be wrapped.
-Casey
More information about the Zope-Coders
mailing list