[Zope] Programmatically deleting objects

Horak, Karl KEHORAK at sandia.gov
Mon Mar 22 18:51:44 EST 2004


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
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/zope/attachments/20040322/3cf28c47/attachment.html


More information about the Zope mailing list