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

+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']: elif field.type in ['blob']:
continue continue
elif field.type == 'upload': elif field.type == 'upload':
inp = cls.represent(field, default, upload) inp = UploadWidget.represent(field, default, upload)
elif field.type == 'boolean': elif field.type == 'boolean':
inp = self.widgets.boolean.widget(field, default, _disabled=True) inp = self.widgets.boolean.widget(field, default, _disabled=True)
else: else:
@@ -1094,7 +1094,7 @@ class SQLFORM(FORM):
and self.table[key].type == 'upload' \ and self.table[key].type == 'upload' \
and request_vars.get(key, None) in (None, '') \ and request_vars.get(key, None) in (None, '') \
and self.record[key] \ 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] del self.errors[key]
if not self.errors: if not self.errors:
ret = True ret = True