Hi, 1. I made a form to add text objects in Zope (Learned form Zope Book!). I used python script for that: id='entry_%d' % len(context.objectIds()) context.manage_addProduct'OFSP']. manage_addDTMLDocument(id, title="", file=comments) doc=getattr(context, id) doc.manage_addProperty('guest_name', guest_name, 'string') 2. I can show/display those objects: <dtml-in expr="objectValues('DTML Document')" sort="bobobase_modification_time" reverse> 3. How I can delete (edit) those objects with HTML form/PYTHON scripr? I like to made interactive "delete" form similar to Zope managment interface. Thanks, Pinko -- _______________________________________________ FREE Personalized E-mail at Mail.com http://www.mail.com/?sr=signup FREE PC-to-Phone calls with Net2Phone http://www.net2phone.com/cgi-bin/link.cgi?121
Pinko Palino writes:
3. How I can delete (edit) those objects with HTML form/PYTHON scripr? I like to made interactive "delete" form similar to Zope managment interface. You can look at the ZMI code....
The method is (from "OFS.ObjectManager"): def manage_delObjects(self, ids=[], REQUEST=None): """Delete a subordinate object The objects specified in 'ids' get deleted. """ Dieter
participants (2)
-
Dieter Maurer -
Pinko Palino