diff --git a/VERSION b/VERSION index 57b103da..0a91b25a 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 1.99.3 (2011-12-05 13:00:28) dev +Version 1.99.3 (2011-12-05 19:57:11) dev diff --git a/gluon/sqlhtml.py b/gluon/sqlhtml.py index d7a0abce..d848906c 100644 --- a/gluon/sqlhtml.py +++ b/gluon/sqlhtml.py @@ -839,7 +839,7 @@ class SQLFORM(FORM): elif field.type in ['blob']: continue elif field.type == 'upload': - inp = cls.represent(field, default, upload) + inp = UploadWidget.represent(field, default, upload) elif field.type == 'boolean': inp = self.widgets.boolean.widget(field, default, _disabled=True) else: @@ -1094,7 +1094,7 @@ class SQLFORM(FORM): and self.table[key].type == 'upload' \ and request_vars.get(key, None) in (None, '') \ and self.record[key] \ - and not key + cls.ID_DELETE_SUFFIX in request_vars: + and not key + UploadWidget.ID_DELETE_SUFFIX in request_vars: del self.errors[key] if not self.errors: ret = True