[Zope-CMF] is this tiny patch to CMFCore/Expression.py okay?
chris at simplistix.co.uk
Sun Dec 5 05:22:20 EST 2004
Florent Guillaume wrote:
> I don't see why not use object.aq_parent, indeed, as Dieter said, it's a
> rare enough situation that it doesn't warrant inclusion into the
> standard expression namespace.
> And surely any object to which you apply this expression will inherit
> from Acquisition.Implicit or Explicit, thus making object.aq_parent ok
> to use.
Well, it's true about the subclassing, but object.aq_parent isn't
necessarily an object if object isn't acquisition wrapped.
Real world use tells me that this happens in CMF, which is why I'm still
asking about this patch ;-)
Simplistix - Content Management, Zope & Python Consulting
More information about the Zope-CMF