[Zope-CMF] is this tiny patch to CMFCore/Expression.py okay?

Florent Guillaume fg at nuxeo.com
Mon Dec 6 09:16:52 EST 2004


In article <41B2E15C.8010106 at simplistix.co.uk> you write:
> 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 ;-)

Please detail you use cases, I can't believe your need is generic enough
to warrant inclusion into the core framework. I've never encountered it
for instance, and apparently Dieter hasn't either.

Florent

-- 
Florent Guillaume, Nuxeo (Paris, France)   CTO, Director of R&D
+33 1 40 33 71 59   http://nuxeo.com   fg at nuxeo.com


More information about the Zope-CMF mailing list