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?" |
Jesper Holmberg writes:
In one product, Parsing, I have this line:
self.manage_addProduct['OFSP'].manage_addStep(id=name, title="Step") Almost surely, your constructor does not live in the product 'OFSP'!
Use the name of your own product as key of "manage_addProduct". Dieter
participants (2)
-
Dieter Maurer -
Jesper Holmberg