I am attempting to let users delete their own documents from a treeview, if they wish. For this I call manage_delObjects with a list of the item to be deleted. I find that manage_delObjects I get (in my current version) an endless loop of Sending request to server... Transferring data from server.... My DTML method, based on the ZMI method for deleting checked items in a tree, looks like this: <form action="." name="objectItems" method="post"> <table width="50%"> <tr> <dtml-tree branches="publicObjects" skip_unauthorized="1" sort="title_or_id"> <td> <dtml-if expr="meta_type == 'Folder'"><B></dtml-if> <IMG SRC="<dtml-var icon>"> <dtml-var title_or_id> <dtml-if expr="meta_type == 'Folder'"></B></dtml-if> </td> <dtml-if expr="meta_type != 'Folder'"> <td width="16%"><input type="checkbox" name="ids:list" value="<dtml-var id>" /></td> </dtml-if> </dtml-tree> </tr> </table> <input class="form-element" type="submit" name="manage_delObjects:method" value="Delete" /> </form> <dtml-var standard_html_footer> What is causing the spinning Zope when this is submitted? Debugging suggestions would be appreciated because <dtml-var REQUEST> is showing everything as it should. Karl
(please don't post in html) Horak, Karl wrote:
My DTML method, based on the ZMI method for deleting checked items in a tree, looks like this:
Try that in ZPT + Python Scripts, much neater...
<form action="." name="objectItems" method="post">
I'm suspicious of an action of '.', that's very relative... do you have amatchign <base href=""> tag?
What is causing the spinning Zope when this is submitted?
Try running up something like Ethereal or TCPWatch and see what's actually going to and from your server... Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk
participants (2)
-
Chris Withers -
Horak, Karl