fixed not x -> x is None, thanks Pai

This commit is contained in:
Massimo Di Pierro
2012-02-03 11:31:44 -06:00
parent 00b51227a0
commit 8fbae09fdf
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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
View File
@@ -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):