[Zope] How to 'add' a ZClass in DTML..

Stuart Woolford stuartw@newmail.net
Mon, 13 Sep 1999 17:09:32 +1200


For a document I can do:
<dtml-call "manage_addDocument(blah, blah, blah)">

now, if I have a ZClass called STOCKProduct (meta STOCK)
how can I make one in DTML? It's beyond my meagre knowledge :(

Also, how to I 'initialise'  properties programatically on creation of a ZClass?
(ie: I want to read them in from an SQL database on creation based on the ID)
I assume I put some code in  STOCKClass_add, but I'll be darned if I can get
anything there to work correctly :(

Any help GREATLY appreciated.

------------------------------------------------------------ 
Stuart Woolford,
stuartw@newmail.net Unix Consultant.
Software Developer.
Supra Club of New Zealand.
------------------------------------------------------------