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: