fixed not x -> x is None, thanks Pai
This commit is contained in:
@@ -1 +1 @@
|
||||
Version 1.99.4 (2012-02-03 11:29:23) stable
|
||||
Version 1.99.4 (2012-02-03 11:31:35) stable
|
||||
|
||||
+2
-2
@@ -6552,8 +6552,8 @@ class Table(dict):
|
||||
elif str(key).isdigit():
|
||||
if key == 0:
|
||||
self.insert(**self._filter_fields(value))
|
||||
elif not self._db(self._id == key)\
|
||||
.update(**self._filter_fields(value)):
|
||||
elif self._db(self._id == key)\
|
||||
.update(**self._filter_fields(value)) is None:
|
||||
raise SyntaxError, 'No such record: %s' % key
|
||||
else:
|
||||
if isinstance(key, dict):
|
||||
|
||||
Reference in New Issue
Block a user