Message3749
The getfile() method located around line 106 of backends/blobfiles.py
should open files for both reading and writing, otherwise changes to msg
and file content within extensions and detectors can not be committed
because the .tmp extension can't be removed.
This:
def getfile(self, classname, nodeid, property):
filename = self.filename(classname, nodeid, property)
f = open(filename, 'rb')
is changed to this:
def getfile(self, classname, nodeid, property):
filename = self.filename(classname, nodeid, property)
f = open(filename, 'r+b')
fixing this particularly vexing issue. |
|
Date |
User |
Action |
Args |
2009-07-07 20:30:03 | dwilliams | set | messageid: <1246998603.05.0.166855145655.issue2550558@psf.upfronthosting.co.za> |
2009-07-07 20:30:03 | dwilliams | set | recipients:
+ dwilliams |
2009-07-07 20:30:02 | dwilliams | link | issue2550558 messages |
2009-07-07 20:30:02 | dwilliams | create | |
|