From 988ee824961c9156431672b985aca7a38f94d978 Mon Sep 17 00:00:00 2001 From: mdipierro Date: Thu, 11 Jul 2013 11:49:49 -0500 Subject: [PATCH] fixed issue 1579:Row.__getitem__(): count of 0 raises AttributeError, thanks Dominic --- VERSION | 2 +- gluon/dal.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index 4b46ea76..627cdd40 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.6.0-development+timestamp.2013.07.11.11.34.59 +Version 2.6.0-development+timestamp.2013.07.11.11.48.58 diff --git a/gluon/dal.py b/gluon/dal.py index b3fd3a00..27be55f0 100644 --- a/gluon/dal.py +++ b/gluon/dal.py @@ -6872,7 +6872,7 @@ class Row(object): _extra = self.__dict__.get('_extra', None) if _extra is not None: v = _extra.get(key, None) - if v: + if v is not None: return v m = REGEX_TABLE_DOT_FIELD.match(key) if m: