[Erp5-report] r25947 - /erp5/trunk/products/ZSQLCatalog/SearchText/SearchTextParser.py

nobody at svn.erp5.org nobody at svn.erp5.org
Tue Mar 10 16:26:23 CET 2009


Author: vincent
Date: Tue Mar 10 16:26:21 2009
New Revision: 25947

URL: http://svn.erp5.org?rev=25947&view=rev
Log:
Woops, this should have been part of commit 25944.

Modified:
    erp5/trunk/products/ZSQLCatalog/SearchText/SearchTextParser.py

Modified: erp5/trunk/products/ZSQLCatalog/SearchText/SearchTextParser.py
URL: http://svn.erp5.org/erp5/trunk/products/ZSQLCatalog/SearchText/SearchTextParser.py?rev=25947&r1=25946&r2=25947&view=diff
==============================================================================
--- erp5/trunk/products/ZSQLCatalog/SearchText/SearchTextParser.py [utf8] (original)
+++ erp5/trunk/products/ZSQLCatalog/SearchText/SearchTextParser.py [utf8] Tue Mar 10 16:26:21 2009
@@ -276,11 +276,14 @@
   original_parse = _parse
   fake_column_id_set = set(['a', 'b', 'c', 'd', 'title', 'toto', 'titi', 'foo', 'bar'])
 
+  def isColumn(value):
+    return value in fake_column_id_set
+
   def parse(input, *args, **kw):
     """
       Parse input and walk generated AST.
     """
-    result = original_parse(input, fake_column_id_set, *args, **kw)
+    result = original_parse(input, isColumn, *args, **kw)
     if result is not None:
       #print repr(result)
       result = walk(result)




More information about the Erp5-report mailing list