[Zope] Re: Getting a methods parent (in a product)

Chris Withers chris at simplistix.co.uk
Mon Jul 25 04:47:57 EDT 2005


Tres Seaver wrote:
> The actual issue is that attribute access will break if you have an
> unwrapped object;  'aq_parent(foo)' will return 'None' in that case.

AttributeError: aq_parent

AttributeEror: None has no attribute "myattribute"

Take your pick I guess ;-)

*grinz*

Chris

-- 
Simplistix - Content Management, Zope & Python Consulting
            - http://www.simplistix.co.uk



More information about the Zope mailing list