web/facet.py
changeset 5774 0d792bceb25d
parent 5768 1e73a466aa69
parent 5773 aae03cd19151
child 6038 5c5d819e8e93
equal deleted inserted replaced
5768:1e73a466aa69 5774:0d792bceb25d
   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()