1 2 3 4 5 6 7 8 9 10 11 12 | class QEmpty(object): def __init__(self): pass def __and__(self, other): return QAnd(self, other) def __or__(self, other): return QOr(self, other) def get_sql(self, opts): return {}, ['42=0'], [] |
1 2 3 4 5 6 7 8 9 10 11 12 | class QEmpty(object): def __init__(self): pass def __and__(self, other): return QAnd(self, other) def __or__(self, other): return QOr(self, other) def get_sql(self, opts): return {}, ['42=0'], [] |
Comments
Good to use with http://buffis.com/blog/?p=46
#