[Erp5-report] r21489 - /erp5/trunk/products/ERP5Type/patches/PropertyManager.py

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Jun 11 10:36:59 CEST 2008


Author: romain
Date: Wed Jun 11 10:36:59 2008
New Revision: 21489

URL: http://svn.erp5.org?rev=21489&view=rev
Log:
Raise exception class instead of a string

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=21489&r1=21488&r2=21489&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/patches/PropertyManager.py (original)
+++ erp5/trunk/products/ERP5Type/patches/PropertyManager.py Wed Jun 11 10:36:59 2008
@@ -107,7 +107,7 @@
 
     if type in ('selection', 'multiple selection'):
         if not hasattr(self, value):
-            raise 'Bad Request', 'No select variable %s' % value
+            raise BadRequest, 'No select variable %s' % value
         self._local_properties=getattr(self, '_local_properties', ()) + (
             {'id':id, 'type':type, 'select_variable':value},)
         if type=='selection':




More information about the Erp5-report mailing list