# HG changeset patch # User Sandrine Ribeau # Date 1225918929 28800 # Node ID 3847ffe2f86c134df81652bce18a7e8863c842d3 # Parent 88d63727407294556ea04eaa723ca48a4108f8dd Make SQLGenAnnotator work with GoogleAppEngine. diff -r 88d637274072 -r 3847ffe2f86c goa/overrides/rqlannotation.py --- a/goa/overrides/rqlannotation.py Wed Nov 05 11:22:05 2008 -0800 +++ b/goa/overrides/rqlannotation.py Wed Nov 05 13:02:09 2008 -0800 @@ -1,6 +1,13 @@ -def sqlgen_annotate(schema, rqlhelper, rqlst): - rqlst.has_text_query = False - rqlst.need_distinct = False - 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 + +