Problem to add an Instance of my own product
Hi ! I have just created a new product in ZOPE. Everything is great, but how I can add an instance of this product without using the management-screen of ZOPE. I want to add a new instance with properties in any folder I like using DTML. Thank for helping. Steffen
Steffen Bergmann wrote:
I have just created a new product in ZOPE. Everything is great, but how I can add an instance of this product without using the management-screen of ZOPE. I want to add a new instance with properties in any folder I like using DTML.
Don't use DTML, use a Python Script! something like: context.<your products add method here>('new_id',<etc>) new_object = getattr(context,'new_id') new_object.<manage_your_properties_here> cheers, Chris
Steffen Bergmann wrote:
Hi !
I have just created a new product in ZOPE. Everything is great, but how I can add an instance of this product without using the management-screen of ZOPE. I want to add a new instance with properties in any folder I like using DTML. Thank for helping.
That's an involved question. Read the relevant How-To's http://www.zope.org/Documentation/How-To I especially recommend the Job Board howto concerning your question. -- Tim Cook, President -- Free Practice Management,Inc. | http://www.FreePM.com Office: (901) 884-4126 "Liberty has never come from the government." - Woodrow Wilson
participants (3)
-
Chris Withers -
Steffen Bergmann -
Tim Cook