def change_query_filters(self): pid = self.obj.pid rq = self.ETM.query(Q.left == pid).attr("pid") result = (Q.OR(Q.pid.IN(rq), Q.pid == pid), ) return result
def __init__ (self, session = None) : self.session = session self.bvar_man = Q.BVAR_Man () self._joined = set () self._order_bys = [] self.polymorphic = False