Re: [Zope] how to delete objects with " in id?
I had the same problem. I ended up deleting it directly from python (shutdown Zope, then import the Main package from python, and then delete the relevant data. Don't forget to commit the transaction) This problem is due to the lack of <!--#var some_var html_quote--> (notice the html_quote) in various part of the DTML sources shipped with Zope. Alternatively, you could patch your DTML to include the html_quote attribute to be able to delete the folder.
I created a folder with double quotes in the id. It created fine, but I couldn't delete it. It gave the error:
Sorry, a Zope error occurred.<p> <!-- Traceback (innermost last): File /opt/zope/lib/python/ZPublisher/Publish.py, line 256, in
publish_module
File /opt/zope/lib/python/ZPublisher/Publish.py, line 161, in publish File /opt/zope/lib/python/ZPublisher/mapply.py, line 154, in mapply (Object: manage_delObjects) File /opt/zope/lib/python/ZPublisher/Publish.py, line 98, in call_object (Object: manage_delObjects) File /opt/zope/lib/python/OFS/ObjectManager.py, line 384, in manage_delObjects (Object: t) BadRequest: asdfasf does not exist
The actual id of the object was asdfasf"asfasf"asfasfdasf"
I ended up having to delete the parent folder. If I had done this in / how could I have deleted the object?
Thanks, ^Roman
participants (1)
-
Service Informatique CHSR