[Erp5-report] r12860 - /erp5/trunk/products/ERP5/Document/BusinessTemplate.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Mon Feb 19 09:14:32 CET 2007
Author: aurel
Date: Mon Feb 19 09:14:29 2007
New Revision: 12860
URL: http://svn.erp5.org?rev=12860&view=rev
Log:
don't fail at uninstall if we don't find the key
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=12860&r1=12859&r2=12860&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/BusinessTemplate.py (original)
+++ erp5/trunk/products/ERP5/Document/BusinessTemplate.py Mon Feb 19 09:14:29 2007
@@ -663,8 +663,8 @@
obj = obj._getCopy(container)
container._setObject(object_id, obj)
obj = container._getOb(object_id)
- # mark a business template installation so in 'PortalType_afterClone' scripts
- # we can implement logical for reseting or not attributes (i.e reference).
+ # mark a business template installation so in 'PortalType_afterClone' scripts
+ # we can implement logical for reseting or not attributes (i.e reference).
self.REQUEST.set('is_business_template_installation', 1)
obj.manage_afterClone(obj)
obj.wl_clearLocks()
@@ -1887,10 +1887,12 @@
else:
values = self._archive.values()
else:
- value = self._archive[object_path]
+ try:
+ value = self._archive[object_path]
+ except KeyError:
+ value = None
if value is not None:
values.append(value)
-
for obj in values:
method_id = obj.id
# remove method references in portal_catalog
More information about the Erp5-report
mailing list