fixed bug

This commit is contained in:
Massimo Di Pierro committed 2011-12-05 19:57:24 -06:00
1 parent 0304233840
commit 749269e288
2 files changed
+3 -3

No files matched your search

+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