Commit a6918d52 authored by Vincent Pelletier's avatar Vincent Pelletier

Woops, this should have been part of commit 25944.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@25947 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 9ac7d282
...@@ -276,11 +276,14 @@ if __name__ == '__main__': ...@@ -276,11 +276,14 @@ if __name__ == '__main__':
original_parse = _parse original_parse = _parse
fake_column_id_set = set(['a', 'b', 'c', 'd', 'title', 'toto', 'titi', 'foo', 'bar']) 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): def parse(input, *args, **kw):
""" """
Parse input and walk generated AST. 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: if result is not None:
#print repr(result) #print repr(result)
result = walk(result) result = walk(result)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment