[ZPT] problem with 'object' arguments

Dieter Maurer dieter@handshake.de
Mon, 3 Mar 2003 20:58:07 +0100


Guenther Starnberger wrote at 2003-3-2 20:33 +0100:
 > i would like to use page templates in a product, but i always get the 
 > same error when trying to pass an object as argument to a zpt.
 > 
 > for example when i pass a (built-in) dictionary to the page template, i 
 > can access all the elements without any problem.
 > 
 > but when i pass an instance of the UserDict class (which should behave 
 > like a normal dictionary) to the pagetemplate i only get an error msg. 
 > ('Undefined: You are not allowed to access muh in this context not 
 > found in 'options/servicedata/d/muh', at line 17, column 1')

Please read the "security" section of the Zope Developers Guide
(--> zope.org).


Dieter