[Zope] Deleting files with URLs

ListBot ListBot <ListBot@scj.net>
Thu, 23 Nov 2000 04:04:29 -0500


Hello,

I have the following method, having problems understanding how to get the "delete" link to work correctly. I get the following error:
No items were specified!

This is because there is no checkbox checked to pass on a file name? Is there another way to delete files by url?

Thanks for helping a newbie.

Regards, 

Sean 
<sean@scj.net>


------------------------
FileArchive/index_html:
------------------------

<p>
<a href="upload_file">Add File</a> | <a href="upload_image">Add Image</a>
<p>
<hr>
<table border="0" width="100%" cellspacing="5">
<tr><th valign="top" align="left"><u>Type</u></th><th valign="top" align="left"><u>Name</u></th><th valign="top" align="left"><u>Size</u></th><th valign="top" align="left"><u>Modified</u></th><th valign="top" align="left"><u>Info</u></th><th valign="top" align="left"><u>Actions</u></th></tr>
<dtml-in expr="FileArchive.objectValues()">
<tr>
<td valign="top" align="left">type</td>
<td valign="top" align="left"><a href="<dtml-var absolute_url>"><dtml-var id></a></td>
<td valign="top" align="left"><dtml-var getSize></td>
<td valign="top" align="left"><dtml-var bobobase_modification_time></td>
<td valign="top" align="left"><a href="<dtml-var absolute_url>/manage_workspace"><img border="0" src="images/info.gif"></a></td>
<td valign="top" align="left"><a href="<dtml-var absolute_url>">Fetch</a> | 
<a href="delete_file">Delete</a></td>
</tr>
</dtml-in>
</table>

-----------------
delete_file:
-----------------
<dtml-var expr="FileArchive.manage_delObjects()">

Your file <dtml-var id> has been deleted from the File Archives.
<p>
<a href="index_html">Return to File index<a/>