goa/overrides/rqlannotation.py
author sylvain.thenault@logilab.fr
Thu, 16 Apr 2009 15:35:36 +0200
changeset 1379 6c6dbc0df829
parent 444 c6f20e605b84
child 1802 d628defebc17
permissions -rw-r--r--
MUST NOT consider req.form['rql'] in a view, use len(rset) > 1 to detect if we can apply tabs or not

def set_qdata(getrschema, union, noinvariant):
    pass
        
class SQLGenAnnotator(object):
    def __init__(self, schema):
        self.schema = schema
        self.nfdomain = frozenset(eschema.type for eschema in schema.entities()
                                  if not eschema.is_final())
    def annotate(self, rqlst):
        rqlst.has_text_query = False
        rqlst.need_distinct = False