From 314278ac69a1fdf159192c9d9868e76cc73ded78 Mon Sep 17 00:00:00 2001 From: mdipierro Date: Tue, 11 Sep 2012 09:53:08 -0500 Subject: [PATCH] fixed issue 996 --- VERSION | 2 +- applications/admin/controllers/default.py | 6 +++--- gluon/sqlhtml.py | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/VERSION b/VERSION index 814b7e64..da4d038a 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.0.8 (2012-09-11 09:39:06) stable +Version 2.0.8 (2012-09-11 09:53:02) stable diff --git a/applications/admin/controllers/default.py b/applications/admin/controllers/default.py index 9b1dbedb..aaf642cf 100644 --- a/applications/admin/controllers/default.py +++ b/applications/admin/controllers/default.py @@ -15,10 +15,10 @@ from gluon.utils import web2py_uuid from glob import glob import shutil import platform -try: - from git import * +try: + from git import * have_git = True -except ImportError: +except ImportError: have_git = False GIT_MISSING = 'requires python-git module, but not installed or incompatible version' diff --git a/gluon/sqlhtml.py b/gluon/sqlhtml.py index 94a1f887..d5a638d7 100644 --- a/gluon/sqlhtml.py +++ b/gluon/sqlhtml.py @@ -2416,7 +2416,7 @@ class SQLTABLE(TABLE): _class = 'odd' if not selectid is None: #new implement - if record[self.id_field_name]==selectid: + if record.get('id') == selectid: _class += ' rowselected' for colname in columns: