Massimo, elif field.type == 'upload': f = self.vars[fieldname] print f fd = '%s__delete' % fieldname ... newfilename = field.store(source_file, original_filename, field.uploadfolder)
When I submit the form with the upload field left empty, nothing is being written to the shell. I also tried adding print 'myName', but that isn't being written to the shell either, not even when I make it the first statement in the accepts function. The first time 'myName' is written to the shell is when I add the print statement in appadmin.py at line 128 right after form = SQLFORM(db[table], ignore_rw=ignore_rw) What else can I do to help you debug this issue? Annet. --