[Erp5-report] r10159 - /erp5/trunk/products/ERP5Type/Constraint/PropertyTypeValidity.py

nobody at svn.erp5.org nobody at svn.erp5.org
Tue Sep 19 14:38:21 CEST 2006


Author: alex
Date: Tue Sep 19 14:38:20 2006
New Revision: 10159

URL: http://svn.erp5.org?rev=10159&view=rev
Log:
Do not evaluate expression when checking properties of type 'tales'

Modified:
    erp5/trunk/products/ERP5Type/Constraint/PropertyTypeValidity.py

Modified: erp5/trunk/products/ERP5Type/Constraint/PropertyTypeValidity.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/Constraint/PropertyTypeValidity.py?rev=10159&r1=10158&r2=10159&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/Constraint/PropertyTypeValidity.py (original)
+++ erp5/trunk/products/ERP5Type/Constraint/PropertyTypeValidity.py Tue Sep 19 14:38:20 2006
@@ -68,7 +68,10 @@
       else:
         property_type = prop['type']
       wrong_type = 0
-      value = obj.getProperty(property_id)
+      if property_type == 'tales':
+        value = obj.getProperty(property_id, evaluate=0)
+      else:
+        value = obj.getProperty(property_id)
       if value is not None:
         # Check known type
         try:




More information about the Erp5-report mailing list