[Zope] Finding constructor
Jesper Holmberg
jesper.holmberg@enst-bretagne.fr
Sun, 11 Nov 2001 23:31:42 +0100
All right, with the kind help from Chris Withers, I'm stumbling forward.
Now I have a new problem.
In one product, Parsing, I have this line:
self.manage_addProduct['OFSP'].manage_addStep(id=name, title="Step")
My wish is to put an object of class Step in my folder of class Parsing.
I have defined a constructor for Step:
class Step(Folder):
...snip....
def manage_addStep(dispatcher, id, title):
"Add a Step to a folder"
s=Step(id, title)
dispatcher.Destination()._setObject(id, s)
and I have put the manage_addStep as a constructor in __init__.py in my
Step product folder.
However, when I run the Parsing code above, I get the errors:
Error Type: AttributeError
Error Value: manage_addStep
so for some reason, the manage_addStep is not known. Why could this be?
TIA
Jesper
--
Jesper Holmberg |"But how can |
jesper.holmberg@enst-bretagne.fr | one be warm |
ENST Br, BP 832, 29285 Brest, FRANCE | alone?" |