[Zope] ZPT can't find file id in from form

Michael Bleijerveld michael at bleijerveld.nl
Fri Aug 15 17:43:54 EDT 2003


Hi,

<tr tal:repeat="file batch" bordercolor="#0099FF" >
  <input type="checkbox" name="ids:list" value="file.id">
  <a href="HOME_URL" tal:attributes="href python:container.getLink(file.id)"
tal:content="file/id"></a>
 </tr>

When selecting a file that must be deleted I receive the following error.

Traceback (innermost last):
  a.. Module ZPublisher.Publish, line 98, in publish
  b.. Module ZPublisher.mapply, line 88, in mapply
  c.. Module ZPublisher.Publish, line 39, in call_object
  d.. Module OFS.DTMLMethod, line 126, in __call__
  e.. Module DocumentTemplate.DT_String, line 474, in __call__
  f.. Module DocumentTemplate.DT_Let, line 76, in render
  g.. Module DocumentTemplate.DT_With, line 76, in render
  h.. Module DocumentTemplate.DT_Try, line 140, in render
  i.. Module DocumentTemplate.DT_Try, line 149, in render_try_except
  j.. Module DocumentTemplate.DT_Util, line 201, in eval
  __traceback_info__: REQUEST
  k.. Module <string>, line 2, in f
  l.. Module Products.LocalFS.LocalFS, line 812, in manage_delObjects
BadRequest: file.id does not exist

What is wrong ?

Regards.

Michael





More information about the Zope mailing list