[Zope] SyntaxError, Names starting with "_" are not allowed (__init__).
Marc O. Sandlus
marc@sandlus.de
Sat, 13 Oct 2001 21:02:24 +0200
Hi
I am trying to execute some example scripts found on zope.org, like this
one:
http://www.zope.org/Members/anthony/tree-coding-tricks
and a modified version here:
http://www.zope.org/Members/rscanon/dtml-tree
So there's this Python script, which I added with the Product List into
Zope:
class _dummy:
__allow_access_to_unprotected_subobjects__=1
def __init__(self, name):
self.name=name
But all I get after clicking into "Save Changes" is:
SyntaxError, Names starting with "_" are not allowed (__init__).
So how can I make theses examples work?
Cheers,
Marc