[Zope] Some objects cannot be deleted programmatically?

Jaroslav Lukesh lsh@wo.cz
Fri, 4 Jul 2003 14:12:08 +0200


Hi all,

I cannot delete all my 

	PortableHole 
	User Folder
	LinkedFolder

objects programmatically. But cache is deleted sucessfully. Did you kick me
from errors, please?

DTML Method:

<dtml-in "objectValues()" skip_unauthorized
    ><dtml-if   "meta_type in ('Accelerated HTTP Cache Manager',
                               'User Folder',
                               'LinkedFolder',
                               'PortableHole' )">
    DEL: <dtml-var title_or_id> absolute_url
    <dtml-call "manage_delObjects([_['id'],])"
  ><dtml-elif "(meta_type=='Folder') or (meta_type=='ZipFolder')"
    ><dtml-with sequence-item
      ><dtml-var del_not_image
    ></dtml-with
  ><dtml-else
  ></dtml-if
></dtml-in>


Error Type: BadRequest
Error Value: s does not exist

Traceback (innermost last):
  File /var/zope/lib/python/ZPublisher/Publish.py, line 150, in
publish_module
  File /var/zope/lib/python/ZPublisher/Publish.py, line 114, in publish
  File /var/zope/lib/python/Zope/__init__.py, line 159, in
zpublisher_exception_hook
    (Object: 02delfin)
  File /var/zope/lib/python/ZPublisher/Publish.py, line 98, in publish
  File /var/zope/lib/python/ZPublisher/mapply.py, line 88, in mapply
    (Object: xx)
  File /var/zope/lib/python/ZPublisher/Publish.py, line 39, in call_object
    (Object: xx)
  File /var/zope/lib/python/OFS/DTMLMethod.py, line 127, in __call__
    (Object: xx)
  File /var/zope/lib/python/DocumentTemplate/DT_String.py, line 473, in
__call__
    (Object: xx)
  File /var/zope/lib/python/DocumentTemplate/DT_In.py, line 695, in
renderwob
    (Object: objectValues())
  File /var/zope/lib/python/DocumentTemplate/DT_With.py, line 76, in render
    (Object: sequence-item)
  File /var/zope/lib/python/DocumentTemplate/DT_Util.py, line 159, in eval
    (Object: manage_delObjects([_['id'],]))
    (Info: manage_delObjects)
  File &lt;string&gt;, line 2, in f
  File /var/zope/lib/python/OFS/ObjectManager.py, line 441, in
manage_delObjects
    (Object: s)
BadRequest: (see above)