web/views/facets.py
branchstable
changeset 5282 d7f72547208e
parent 5112 5bf8baecfaf8
child 5377 84d14ddfae13
equal deleted inserted replaced
5281:d01a02d07a57 5282:d7f72547208e
    67         if self.roundcorners:
    67         if self.roundcorners:
    68             req.html_headers.add_onload('jQuery(".facet").corner("tl br 10px");')
    68             req.html_headers.add_onload('jQuery(".facet").corner("tl br 10px");')
    69         rset, vid, divid, paginate = self._get_context(view)
    69         rset, vid, divid, paginate = self._get_context(view)
    70         if rset.rowcount < 2: # XXX done by selectors, though maybe necessary when rset has been hijacked
    70         if rset.rowcount < 2: # XXX done by selectors, though maybe necessary when rset has been hijacked
    71             return
    71             return
    72         rqlst = self.cw_rset.syntax_tree()
    72         rqlst = rset.syntax_tree()
    73         # union not yet supported
    73         # union not yet supported
    74         if len(rqlst.children) != 1:
    74         if len(rqlst.children) != 1:
    75             return ()
    75             return ()
    76         rqlst = rqlst.copy()
    76         rqlst = rqlst.copy()
    77         req.vreg.rqlhelper.annotate(rqlst)
    77         req.vreg.rqlhelper.annotate(rqlst)