fixed bug

This commit is contained in:
Massimo Di Pierro
2011-12-05 19:57:24 -06:00
parent 0304233840
commit 749269e288
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -1 +1 @@
Version 1.99.3 (2011-12-05 13:00:28) dev
Version 1.99.3 (2011-12-05 19:57:11) dev
+2 -2
View File
@@ -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