[Erp5-report] r41812 nicolas.dumazet - /erp5/trunk/products/ERP5PropertySheetLegacy/Propert...

nobody at svn.erp5.org nobody at svn.erp5.org
Tue Dec 28 04:01:09 CET 2010


Author: nicolas.dumazet
Date: Tue Dec 28 04:01:08 2010
New Revision: 41812

URL: http://svn.erp5.org?rev=41812&view=rev
Log:
add tales expression to a predicate so that one can define simple conditions
without having to create dozens of unique Python scripts.


Modified:
    erp5/trunk/products/ERP5PropertySheetLegacy/PropertySheet/Predicate.py

Modified: erp5/trunk/products/ERP5PropertySheetLegacy/PropertySheet/Predicate.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5PropertySheetLegacy/PropertySheet/Predicate.py?rev=41812&r1=41811&r2=41812&view=diff
==============================================================================
--- erp5/trunk/products/ERP5PropertySheetLegacy/PropertySheet/Predicate.py [utf8] (original)
+++ erp5/trunk/products/ERP5PropertySheetLegacy/PropertySheet/Predicate.py [utf8] Tue Dec 28 04:01:08 2010
@@ -61,6 +61,13 @@ class Predicate:
             'type'        : 'lines',
             'default'     : (),
             'mode'        : 'w' },
+        {   'id'          : 'test_tales_expression',
+            'description' : 'A Tales expression to implement a simple ' \
+                            'condition in Python. Runtime context of this ' \
+                            'expression will be the tested document',
+            'type'        : 'string',
+            'default'     : 'python: True',
+            'mode'        : 'w' },
         {   'id'          : 'test_method_id',
             'description' : 'A python method to implement additional tests',
             'type'        : 'lines', # Only a list of method ids is feasable for lines



More information about the Erp5-report mailing list