7 Nov
2002
7 Nov
'02
11:11 a.m.
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