Roundup Tracker - Issues

Message5638

Author rouilj
Recipients broader, richard, rouilj
Date 2016-06-26.22:27:21
Message-id <1466980041.64.0.185852371943.issue2051107@psf.upfronthosting.co.za>
In-reply-to
That function doesn't do what you think it does.

To get path to the file in the tracker that sotres
file contents use: self.db.filename as below (from hyperdb.py):

    def export_files(self, dirname, nodeid):
        """ Export the "content" property as a file, not csv column
        """
        source = self.db.filename(self.classname, nodeid)

        dest = self.exportFilename(dirname, nodeid)
        ensureParentsExist(dest)
        shutil.copyfile(source, dest)

exportFilename is used to generate the *target* destination
path for the exported directory.

What you want is self.db.filename given the class and nodeid.
History
Date User Action Args
2016-06-26 22:27:21rouiljsetmessageid: <1466980041.64.0.185852371943.issue2051107@psf.upfronthosting.co.za>
2016-06-26 22:27:21rouiljsetrecipients: + rouilj, richard, broader
2016-06-26 22:27:21rouiljlinkissue2051107 messages
2016-06-26 22:27:21rouiljcreate