[Zope-dev] Re: 2.7.0-b2 - Critical ZPT TAL bug when using content-type text/xml

Evan Simpson evan at 4-am.com
Mon Sep 22 10:51:40 EDT 2003


Until cAccessControl.c is fixed, you can work around the problem with a 
simple patch to Products/PageTemplates/Expressions.py, in 
restrictedTraverse():

           if isinstance(name, TupleType):
               object = object(*name)
               continue
+
+         name = str(name)
           if not name or name[0] == '_':
               # Skip directly to item access

Cheers,

Evan @ 4-am





More information about the Zope-Dev mailing list