[Erp5-report] r10164 - /erp5/trunk/products/ERP5/Document/Amount.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Tue Sep 19 14:41:48 CEST 2006
Author: alex
Date: Tue Sep 19 14:41:46 2006
New Revision: 10164
URL: http://svn.erp5.org?rev=10164&view=rev
Log:
print a log message when setting a property fails in setVariationPropertyDict
Modified:
erp5/trunk/products/ERP5/Document/Amount.py
Modified: erp5/trunk/products/ERP5/Document/Amount.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/Amount.py?rev=10164&r1=10163&r2=10164&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/Amount.py (original)
+++ erp5/trunk/products/ERP5/Document/Amount.py Tue Sep 19 14:41:46 2006
@@ -306,7 +306,12 @@
raise KeyError, "Can not set the property variation '%s'" % \
property_id
else:
- self.setProperty(property_id, property_value)
+ try:
+ self.setProperty(property_id, property_value)
+ except KeyError:
+ LOG("Amount", 200, "Can not set %s with value %s on %s" % \
+ (property_id, property_value, self.getRelativeUrl()))
+ raise
security.declareProtected(Permissions.AccessContentsInformation,
'getQuantityUnitRangeItemList')
More information about the Erp5-report
mailing list