equal
deleted
inserted
replaced
518 self._cw = req |
518 self._cw = req |
519 |
519 |
520 def build_rql(self):#, tablefilter=False): |
520 def build_rql(self):#, tablefilter=False): |
521 form = self._cw.form |
521 form = self._cw.form |
522 facetids = form['facets'].split(',') |
522 facetids = form['facets'].split(',') |
523 select = parse(form['baserql']).children[0] # XXX Union unsupported yet |
523 select = self._cw.vreg.parse(self._cw, form['baserql']).children[0] # XXX Union unsupported yet |
524 mainvar = filtered_variable(select) |
524 mainvar = filtered_variable(select) |
525 toupdate = [] |
525 toupdate = [] |
526 for facetid in facetids: |
526 for facetid in facetids: |
527 facet = get_facet(self._cw, facetid, select, mainvar) |
527 facet = get_facet(self._cw, facetid, select, mainvar) |
528 facet.add_rql_restrictions() |
528 facet.add_rql_restrictions() |