Here's a code snippet from one of our applications
(you should be able to figure out what you need from this example):
<dtml-with
UserData>
<dtml-with "manage_addProduct['TCAide']"> <dtml-with "TCAUsers.createInObjectManager(REQUEST['clientid'], REQUEST)"> <dtml-call "propertysheets.TCAUsersPS.manage_changeProperties(REQUEST)"> <dtml-call reindex_object> </dtml-with> </dtml-with> UserData is a folder where new zclass instances are
stored.
TCAUsers is our zclass
TCAUsersPS is the common instance propertysheet for
the zclass
All of the property fields/values are stored in
REQUEST (as a result of a user filling in an html form)
We call reindex_object because our zclasses are
'catalog aware' and we are reindexing the catalog.
hth
Jonathan
|
_______________________________________________ Zope maillist - Zope@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 )