[Erp5-report] r9150 - /erp5/trunk/products/ERP5/Document/BusinessTemplate.py

nobody at svn.erp5.org nobody at svn.erp5.org
Fri Aug 11 14:20:59 CEST 2006


Author: chris
Date: Fri Aug 11 14:20:45 2006
New Revision: 9150

URL: http://svn.erp5.org?rev=9150&view=rev
Log:
- Fixed bug #447: BT Uninstall fails if a folder/file is already removed

Modified:
    erp5/trunk/products/ERP5/Document/BusinessTemplate.py

Modified: erp5/trunk/products/ERP5/Document/BusinessTemplate.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/BusinessTemplate.py?rev=9150&r1=9149&r2=9150&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/BusinessTemplate.py (original)
+++ erp5/trunk/products/ERP5/Document/BusinessTemplate.py Fri Aug 11 14:20:45 2006
@@ -62,6 +62,7 @@
 from cStringIO import StringIO
 from copy import deepcopy
 from App.config import getConfiguration
+from zExceptions import BadRequest
 import OFS.XMLExportImport
 customImporters={
     XMLExportImport.magic: XMLExportImport.importXML,
@@ -681,7 +682,7 @@
         if trash and trashbin is not None:
           self.portal_trash.backupObject(trashbin, container_path, object_id, save=1, keep_subobjects=1)
         container.manage_delObjects([object_id])
-      except (NotFound, KeyError):
+      except (NotFound, KeyError, BadRequest):
         # object is already backup and/or removed
         pass
     BaseTemplateItem.uninstall(self, context, **kw)




More information about the Erp5-report mailing list