comparison roundup/hyperdb.py @ 5101:d043a09952db

Tried to explain the use of hyperdb's exportFilename which was misunderstood in issue2051107.
author John Rouillard <rouilj@ieee.org>
date Sun, 26 Jun 2016 20:50:06 -0400
parents 675b3b3d88f0
children 8901cc4ef0e0
comparison
equal deleted inserted replaced
5100:5775959d81a3 5101:d043a09952db
1486 propnames.remove('content') 1486 propnames.remove('content')
1487 propnames.sort() 1487 propnames.sort()
1488 return propnames 1488 return propnames
1489 1489
1490 def exportFilename(self, dirname, nodeid): 1490 def exportFilename(self, dirname, nodeid):
1491 """ Returns destination filename for a exported file
1492
1493 Called by export function in roundup admin to generate
1494 the <class>-files subdirectory
1495 """
1491 subdir_filename = self.db.subdirFilename(self.classname, nodeid) 1496 subdir_filename = self.db.subdirFilename(self.classname, nodeid)
1492 return os.path.join(dirname, self.classname+'-files', subdir_filename) 1497 return os.path.join(dirname, self.classname+'-files', subdir_filename)
1493 1498
1494 def export_files(self, dirname, nodeid): 1499 def export_files(self, dirname, nodeid):
1495 """ Export the "content" property as a file, not csv column 1500 """ Export the "content" property as a file, not csv column

Roundup Issue Tracker: http://roundup-tracker.org/