db(query)(other if cond else None).select()
This commit is contained in:
committed by
Tim Richardson
parent
d454eb2fe7
commit
98ad12a06c
2
VERSION
2
VERSION
@@ -1 +1 @@
|
||||
Version 2.4.6-stable+timestamp.2013.05.03.22.24.45
|
||||
Version 2.4.6-stable+timestamp.2013.05.04.10.23.42
|
||||
|
||||
@@ -9744,7 +9744,9 @@ class Set(object):
|
||||
return '<Set %s>' % BaseAdapter.expand(self.db._adapter,self.query)
|
||||
|
||||
def __call__(self, query, ignore_common_filters=False):
|
||||
if isinstance(query,Table):
|
||||
if query is None:
|
||||
return self
|
||||
elif isinstance(query,Table):
|
||||
query = self.db._adapter.id_query(query)
|
||||
elif isinstance(query,str):
|
||||
query = Expression(self.db,query)
|
||||
|
||||
Reference in New Issue
Block a user