From 89c4efbac3f7afa4ff962e79ec7bb6ae3d320a7a Mon Sep 17 00:00:00 2001 From: Jeremie Dokime Date: Thu, 6 Mar 2014 17:56:11 +0100 Subject: [PATCH] Fix DAL ADD method Fix regression of ADD method: NameError: global name 'gluon' is not defined --- gluon/dal.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gluon/dal.py b/gluon/dal.py index 7ef6a1da..7aa05774 100644 --- a/gluon/dal.py +++ b/gluon/dal.py @@ -1480,7 +1480,7 @@ class BaseAdapter(ConnectionPool): return '(%s)' % ' || '.join(self.expand(x,'string') for x in items) def ADD(self, first, second): - if self.is_numerical_type(first.type) or isinstance(first.type, gluon.dal.Field): + if self.is_numerical_type(first.type) or isinstance(first.type, Field): return '(%s + %s)' % (self.expand(first), self.expand(second, first.type)) else: