goa/overrides/rqlannotation.py
author Aurelien Campeas <aurelien.campeas@logilab.fr>
Mon, 12 Jan 2009 18:15:14 +0100
changeset 397 cf577e26f924
parent 2 3847ffe2f86c
child 444 c6f20e605b84
permissions -rw-r--r--
don't introduce a spurious 'x' key in the entity-as dict

def set_qdata(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