diff --git a/VERSION b/VERSION index 130d5fbb..68323af7 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 1.99.4 (2012-02-26 15:34:08) stable +Version 1.99.4 (2012-02-26 15:36:09) stable diff --git a/gluon/sqlhtml.py b/gluon/sqlhtml.py index 06d51ef4..2e70368e 100644 --- a/gluon/sqlhtml.py +++ b/gluon/sqlhtml.py @@ -39,6 +39,7 @@ def represent(field,value,record): if not callable(f): return str(value) n = f.func_code.co_argcount-len(f.func_defaults or []) + if getattr(f, 'im_self', None): n -= 1 if n==1: return f(value) elif n==2: