From b64bf54f3e2764d95f5f854abacca916cd2f0cb8 Mon Sep 17 00:00:00 2001 From: mdipierro Date: Fri, 22 Feb 2013 10:18:59 -0600 Subject: [PATCH] fixed keyed table issue, thanks Denes --- VERSION | 2 +- gluon/dal.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index c82acc19..9af774d2 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.4.1-alpha.2+timestamp.2013.02.21.10.20.58 +Version 2.4.1-alpha.2+timestamp.2013.02.22.10.18.20 diff --git a/gluon/dal.py b/gluon/dal.py index daa72d63..93dfe81b 100644 --- a/gluon/dal.py +++ b/gluon/dal.py @@ -792,7 +792,7 @@ class BaseAdapter(ConnectionPool): rtable = db[rtablename] rfield = rtable[rfieldname] # must be PK reference or unique - if rfieldname in hasattr(rtable,'_primarykey') or \ + if rfieldname in rtable._primarykey or \ rfield.unique: ftype = types[rfield.type[:9]] % \ dict(length=rfield.length)