[ZPT] CVS: Products/PageTemplates - Expressions.py:1.20

Evan Simpson evan@zope.com
Sat, 25 Aug 2001 14:48:48 -0400


Update of /cvs-repository/Products/PageTemplates
In directory cvs.zope.org:/tmp/cvs-serv12411

Modified Files:
	Expressions.py 
Log Message:
Hack around __bobo_traverse__ validation problem.

=== Products/PageTemplates/Expressions.py 1.19 => 1.20 ===
                     
             container = None
-            if (has(get(object, 'aq_base', object), name)
-                and get(object, name) is o):
+            if has(o, 'im_self'):
+                container = o.im_self
+            elif (has(get(object, 'aq_base', object), name)
+                and get(object, name) == o):
                 container = object
             if not validate(object, container, name, o):
                 raise 'Unauthorized', name