[Erp5-report] r13545 - /erp5/trunk/products/ERP5/Document/BusinessTemplate.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Mar 22 09:27:11 CET 2007
Author: aurel
Date: Thu Mar 22 09:27:09 2007
New Revision: 13545
URL: http://svn.erp5.org?rev=13545&view=rev
Log:
do no try getitem on catalog at uninstall
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=13545&r1=13544&r2=13545&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/BusinessTemplate.py (original)
+++ erp5/trunk/products/ERP5/Document/BusinessTemplate.py Thu Mar 22 09:27:09 2007
@@ -804,9 +804,11 @@
object_id = relative_url.split('/')[-1]
try:
container = portal.unrestrictedTraverse(container_path)
- object = container[object_id] # We force access to the object to be sure
- # that appropriate exception is thrown
- # in case object is already backup and/or removed
+ if container.aq_parent.meta_type != 'ERP5 Catalog':
+ # __getitem__ on a catalog wait for an uid
+ object = container[object_id] # We force access to the object to be sure
+ # that appropriate exception is thrown
+ # in case object is already backup and/or removed
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])
More information about the Erp5-report
mailing list