On Jul 8, 2010, at 11:04 AM, Martijn Faassen wrote:
> 
> I propose the following adjustment:
> 
>   try:
>      container = context.__parent__
>   except AttributeError:
>      container = ILocation(context).__parent__

+1

Gary
_______________________________________________
Zope-Dev maillist  -  Zope-Dev@zope.org
https://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope )

Reply via email to