added some code to help debug issue 1471

This commit is contained in:
mdipierro
2013-05-08 16:52:59 -05:00
parent 20db6daa65
commit 97e0736d8e
2 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -1 +1 @@
Version 2.4.6-stable+timestamp.2013.05.08.16.44.02
Version 2.4.6-stable+timestamp.2013.05.08.16.52.12
+4
View File
@@ -1467,6 +1467,10 @@ class SQLFORM(FORM):
### do not know why this happens, it should not
(source_file, original_filename) = \
(cStringIO.StringIO(f), 'file.txt')
else:
# this should never happen, why does it happen?
print 'f=',repr(f)
continue
newfilename = field.store(source_file, original_filename,
field.uploadfolder)
# this line was for backward compatibility but problematic