store method crash on win32 plateform

Issue #8 new
Anonymous created an issue

crash on directory delete
the dfile object is not closed before "os.remove(dpath)" has been called at the end of the method

just add dfile.close before comment

remove temp file

bug found thx to pygall

stack trace :

rror - <type 'exceptions.WindowsError'>: [Error 32] Le processus ne peut pas ac
cÚder au fichier car ce fichier est utilisÚ par un autre processus: 'C:\DEV\te
File 'C:\DEV\envbidon27\lib\site-packages\weberror-0.10.3-py2.7.egg\weberr
or\', line 162 in call
app_iter = self.application(environ, sr_checker)
File 'C:\DEV\envbidon27\lib\site-packages\gp.fileupload-1.0-py2.7.egg\gp\
fileupload\', line 105 in call
return self.application(environ, start_response)
File 'C:\DEV\envbidon27\lib\site-packages\gp.fileupload-1.0-py2.7.egg\gp\
fileupload\', line 93 in call
return, start_response)
File 'C:\DEV\envbidon27\lib\site-packages\gp.fileupload-1.0-py2.7.egg\gp\
fileupload\', line 232 in store
WindowsError: [Error 32] Le processus ne peut pas acc&#xFFFD;der au fichier car
ce fichier est utilis&#xFFFD; par un autre processus: 'C:\DEV\test_PYGAll/data

Comments (0)

  1. Log in to comment