Paul Winkler wrote at 2005-5-27 11:02 -0400:
> ...
>def safe_hasattr(obj, attr, acquired=True, _marker=[]):
>    if not acquired:
>        obj = aq_inner(aq_explicit(obj))

This should be "obj = aq_base(obj)".

The "aq_explicit(aq_inner(...))" dance is only necessary in
untrusted code as "aq_base" is not available there.

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

Reply via email to