[Zope] SyntaxError, Names starting with "_" are not allowed (__init__).
Chris McDonough
chrism@zope.com
Sat, 13 Oct 2001 16:04:30 -0400
Use an external method instead of a python script.
Marc O. Sandlus wrote:
> 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
>
>
> _______________________________________________
> Zope maillist - Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists -
> http://lists.zope.org/mailman/listinfo/zope-announce
> http://lists.zope.org/mailman/listinfo/zope-dev )
>
--
Chris McDonough Zope Corporation
http://www.zope.org http://www.zope.com
"Killing hundreds of birds with thousands of stones"