[Zope] underscore '_' in python script
Chris Withers
chrisw@nipltd.com
Thu, 07 Nov 2002 11:11:24 +0000
Alfredo P. Ricafort wrote:
>
> In this location,
> http://www.zope.org/Members/anthony/tree-coding-tricks, there is a
> sample python script. If I try to load it in my Zope installation (ver
> 2.6), it complains because a class and a method starts with "_". But in
> python, the class initialization method __init__ starts "_".
>
> So how do you define a class that requires an initialization method in a
> Zope?
if you're trying to use Script (Python)'s to play around with this, don't,
they're not designed for it ;-)
You probably want to look at writing a disk-based Python Product in which you
can do anything you want.
cheers,
Chris