Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Changes between Version 3 and Version 4 of FileUploadTutorial


Ignore:
Timestamp:
11/16/05 12:14:28 (14 years ago)
Author:
ben@…
Comment:

f.close should be f.close()

Legend:

Unmodified
Added
Removed
Modified
  • FileUploadTutorial

    v3 v4  
    8888                        f = open(target_file_name, 'w') 
    8989                        f.write(data) 
    90                         f.close 
     90                        f.close() 
    9191                        turbogears.flash("File uploaded successfully: %s saved as : %s" % (upload_file.filename, target_file_name)) 
    9292                        u = UploadedFile(filename=upload_file.filename, abspath=target_file_name, size=0)