[Zope] __init__ is not a valid variable name because it starts with a "_"

Chris McDonough chrism@zope.com
Fri, 28 Jun 2002 17:36:29 -0400


You can't really define classes in Python Scripts.  It's easiest to
think of Python scripts like methods of the Folder in which they
live.  If you need to define a class, you'll likely need to write a
Python Product.

----- Original Message -----
From: "Adrian May" <stoneage@stone-age-software.com>
To: <zope@zope.org>
Sent: Friday, June 28, 2002 4:31 PM
Subject: [Zope] __init__ is not a valid variable name because it
starts with a "_"


>
> Thats what zope said when I made a new python script and entered
something
> like:
>
> class AdsSecondClass:
>    def __init__()
>     blah blah
>
> as inspired by some example code.
>
> Why?
>
> All I really want is to store four integers on the server and have
them
> updated by surfer actions.
>
> Thanks in advance,
>
> Ad.
>
>
>
> _______________________________________________
> 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 )
>