From 8fbae09fdf20b8cf758f920c247f7ac09cb05ddf Mon Sep 17 00:00:00 2001 From: Massimo Di Pierro Date: Fri, 3 Feb 2012 11:31:44 -0600 Subject: [PATCH] fixed not x -> x is None, thanks Pai --- VERSION | 2 +- gluon/dal.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/VERSION b/VERSION index 4f0d04a4..46cdf1f3 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 1.99.4 (2012-02-03 11:29:23) stable +Version 1.99.4 (2012-02-03 11:31:35) stable diff --git a/gluon/dal.py b/gluon/dal.py index cfe46e01..6af3be1e 100644 --- a/gluon/dal.py +++ b/gluon/dal.py @@ -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):