[Zope] <dtml-with> / <dtml-in> bug or mistake?

Dieter Maurer dieter@handshake.de
Thu, 27 Jun 2002 20:25:41 +0200


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