reverting previous patch, Anthony is right, the patch is not backward compatible

This commit is contained in:
mdipierro committed 2013-05-06 19:49:57 -05:00
1 parent adf82c1267
commit e44254346c
2 files changed
+4 -3

No files matched your search

+1 -1
View File
@@ -1 +1 @@
Version 2.4.6-stable+timestamp.2013.05.06.19.09.29 Version 2.4.6-stable+timestamp.2013.05.06.19.49.05
+3 -2
View File
@@ -1456,8 +1456,9 @@ class SQLFORM(FORM):
if not f: if not f:
continue continue
else: else:
ufolder = field.uploadfolder or current.request.folder f = os.path.join(
f = os.path.join(ufolder, os.path.normpath(f)) current.request.folder,
os.path.normpath(f))
source_file = open(f, 'rb') source_file = open(f, 'rb')
original_filename = os.path.split(f)[1] original_filename = os.path.split(f)[1]
elif hasattr(f, 'file'): elif hasattr(f, 'file'):