[Zope] help with product/zClass
Ausum Studio
ausum_studio at hotmail.com
Mon Apr 19 17:36:34 EDT 2004
Try to split your problem into smaller pieces. First things first, and
you'll get more responses if you do this way. What is the first issue you
are dealing with? How to fill a folder instance with objects at its creation
moment?
If so, you just need your constructor method to perform all these things
**in the same** script:
a) Create the folder-like instance,
b) Call the just-created instance,
c) Add other objects inside the instance
If you need the other objects to have initial content, you just write it in
its corresponding Common Instance Property Sheet.
Ausum
----- Original Message -----
From: Michael Ruberto
To: zope at zope.org
Sent: Monday, April 19, 2004 2:39 PM
Subject: [Zope] help with product/zClass
I am trying to build a Product like this: adding an instance generates a
folder containing an HTML template with a custom property set, and several
Epoz Documents. The template has variables to render the contents of the
Epoz Documents in the editable regions.
I have gotten most of this to work as individual pieces so far but no luck
in building a product. I know I can just write a DTML or Python script to
make copies of a folder containing the files but I would then have to change
every instance should the property set be revised later on.
Ultimately I need for the user to be able to select the product from the add
list and input the properties on the addForm. Then the constructor method
would create the folder and files in the current directory. It seems simple
enough but my lack of understanding of products and Zclasses is hampering
me.
I have closely studied all the examples and tutorials and learned a lot but
none of it is helping.
I would greatly appreciate any advice, pointers or suggestions.
Thanks!
Mike
_______________________________________________
Zope maillist - Zope at zope.org
http://mail.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )
More information about the Zope
mailing list