Skip to content

Commit 98214d0

Browse files
committed
Tried to explain the use of hyperdb's exportFilename
which was misunderstood in issue2051107.
1 parent 1431f94 commit 98214d0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

roundup/hyperdb.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1488,6 +1488,11 @@ def export_propnames(self):
14881488
return propnames
14891489

14901490
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+
"""
14911496
subdir_filename = self.db.subdirFilename(self.classname, nodeid)
14921497
return os.path.join(dirname, self.classname+'-files', subdir_filename)
14931498

0 commit comments

Comments
 (0)