Skip to content

Commit 0749329

Browse files
author
Richard Jones
committed
fix roundup-admin "export" so it creates the target dir if needed
1 parent 7393ae1 commit 0749329

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

CHANGES.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ Fixed:
2727
(roundup.cgi) to have the errors appear in your browser
2828
- fix setgid typo (sf bug 1171346)
2929
- fix faulty find_template filename facility (sf bug 1163629)
30+
- fix roundup-admin "export" so it creates the target dir if needed
3031

3132

3233
2005-03-03 0.8.2

roundup/admin.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1717
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1818
#
19-
# $Id: admin.py,v 1.89 2005-02-28 03:14:49 richard Exp $
19+
# $Id: admin.py,v 1.90 2005-04-13 06:55:44 richard Exp $
2020

2121
'''Administration commands for maintaining Roundup trackers.
2222
'''
@@ -1053,6 +1053,10 @@ def do_export(self, args):
10531053
class colon_separated(csv.excel):
10541054
delimiter = ':'
10551055

1056+
# make sure target dir exists
1057+
if not os.path.exists(dir):
1058+
os.makedirs(dir)
1059+
10561060
# do all the classes specified
10571061
for classname in classes:
10581062
cl = self.get_class(classname)

0 commit comments

Comments
 (0)