27 Jun
2002
27 Jun
'02
6:25 p.m.
Simon Brun writes:
... I recieve a syntax error!
<dtml-with "projectxy.04templates.concepts"> <dtml-var template> </dtml-with> Python's attribute access syntax "obj.attr" requires "attr" to be a Python name. Python names consist of ASCII letters, digits and "_" and must not start with a digit. As "0" is a digit, you get a "SyntaxError".
Inside Zope, the name usually must not start with "_" either. Otherwise, you get an "Unauthorized" exception. Dieter