Roundup Tracker - Issues

Message3749

Author dwilliams
Recipients dwilliams
Date 2009-07-07.20:30:02
Message-id <1246998603.05.0.166855145655.issue2550558@psf.upfronthosting.co.za>
In-reply-to
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.
History
Date User Action Args
2009-07-07 20:30:03dwilliamssetmessageid: <1246998603.05.0.166855145655.issue2550558@psf.upfronthosting.co.za>
2009-07-07 20:30:03dwilliamssetrecipients: + dwilliams
2009-07-07 20:30:02dwilliamslinkissue2550558 messages
2009-07-07 20:30:02dwilliamscreate