[Erp5-report] r6860 - /erp5/trunk/products/ERP5Type/patches/PropertyManager.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Sun Apr 23 23:23:32 CEST 2006
Author: jerome
Date: Sun Apr 23 23:23:28 2006
New Revision: 6860
URL: http://svn.erp5.org?rev=6860&view=rev
Log:
use BadReques class rather than a string exception
Modified:
erp5/trunk/products/ERP5Type/patches/PropertyManager.py
Modified: erp5/trunk/products/ERP5Type/patches/PropertyManager.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/patches/PropertyManager.py?rev=6860&r1=6859&r2=6860&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/patches/PropertyManager.py (original)
+++ erp5/trunk/products/ERP5Type/patches/PropertyManager.py Sun Apr 23 23:23:28 2006
@@ -20,6 +20,7 @@
from Products.ERP5Type.ERP5Type import ERP5TypeInformation
from Products.CMFCore.Expression import Expression
from Products.ERP5Type import _dtmldir
+from zExceptions import BadRequest
class ERP5PropertyManager(PropertyManager):
"""
@@ -101,7 +102,7 @@
self._wrapperCheck(value)
if not self.valid_property_id(id):
- raise 'Bad Request', 'Invalid or duplicate property id'
+ raise BadRequest, 'Invalid or duplicate property id: %s' % id
if type in ('selection', 'multiple selection'):
if not hasattr(self, value):
More information about the Erp5-report
mailing list