fixed memdb anc session issue 1885

This commit is contained in:
mdipierro
2014-03-04 22:33:50 -06:00
parent 8b03bf5fd9
commit d20f231b34
2 changed files with 6 additions and 3 deletions
+1 -1
View File
@@ -1 +1 @@
Version 2.9.3-stable+timestamp.2014.03.04.22.27.25
Version 2.9.3-stable+timestamp.2014.03.04.22.32.31
+5 -2
View File
@@ -292,8 +292,11 @@ class Table(DALStorage):
def __str__(self):
return self._tablename
def __call__(self, id):
return self.get(id)
def __call__(self, id, **kwargs):
record = self.get(id)
if kwargs and any(record[key]!=kwargs[key] for key in kwargs):
return None
return record
class Expression(object):