Changeset c017b0 in indico


Ignore:
Timestamp:
02/07/12 17:00:41 (16 months ago)
Author:
Pedro Ferreira <jose.pedro.ferreira@…>
Branches:
master, hello-world-walkthrough, ipv6, v0.98-series, v0.98.2, v0.98.3, v0.98b2, v0.99, 051b2622c51afb171a1dedb46a0df4fbb0cbd02e, 0da0c1403bae8e51d8229f460181c71b9e6dda72
Children:
bd79fe
Parents:
f345ad
git-author:
Pedro Ferreira <jose.pedro.ferreira@…> (02/07/12 16:59:19)
git-committer:
Pedro Ferreira <jose.pedro.ferreira@…> (02/07/12 17:00:41)
Message:

[FIX] Duplicate file delete after request

  • In case of conflict the file would be added twice to the list and

Indico would try to delete it twice at the end of the request.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • indico/MaKaC/webinterface/rh/conferenceBase.py

    r25b790 rc017b0  
    210210                shutil.copyfileobj(fd, f) 
    211211            self._tempFiles[fd] = fileName 
     212            # queue file for deletion at end of request 
     213            self._tempFilesToDelete.append(fileName) 
    212214        return self._tempFiles[fd] 
    213215 
     
    263265                        fDict["filePath"] = self._saveFileToTemp(fileUpload.file) 
    264266                        fDict["size"] = os.path.getsize(fDict["filePath"]) 
    265                         self._tempFilesToDelete.append(fDict["filePath"]) 
    266267 
    267268                    self._setErrorList(fDict) 
Note: See TracChangeset for help on using the changeset viewer.