[facet] use vreg.parse so the rql syntax tree is properly annotated as well stable
authorKatia Saurfelt <katia.saurfelt@logilab.fr>
Thu, 17 Jun 2010 15:09:12 +0200
branchstable
changeset 5773 aae03cd19151
parent 5772 4283ee58acaf
child 5774 0d792bceb25d
child 5776 e7a88c97fef7
[facet] use vreg.parse so the rql syntax tree is properly annotated as well
web/facet.py
--- a/web/facet.py	Thu Jun 17 15:08:25 2010 +0200
+++ b/web/facet.py	Thu Jun 17 15:09:12 2010 +0200
@@ -520,7 +520,7 @@
     def build_rql(self):#, tablefilter=False):
         form = self._cw.form
         facetids = form['facets'].split(',')
-        select = parse(form['baserql']).children[0] # XXX Union unsupported yet
+        select = self._cw.vreg.parse(self._cw, form['baserql']).children[0] # XXX Union unsupported yet
         mainvar = filtered_variable(select)
         toupdate = []
         for facetid in facetids: