Skip to content

Commit 07b0917

Browse files
author
Richard Jones
committed
merge from HEAD
1 parent aa82163 commit 07b0917

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
@@ -22,6 +22,7 @@ Fixed:
2222
(roundup.cgi) to have the errors appear in your browser
2323
- fix setgid typo (sf bug 1171346)
2424
- fix faulty find_template filename facility (sf bug 1163629)
25+
- fix roundup-admin "export" so it creates the target dir if needed
2526

2627

2728
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.85.2.3 2005-02-28 03:13:42 richard Exp $
19+
# $Id: admin.py,v 1.85.2.4 2005-04-13 06:57:09 richard Exp $
2020

2121
'''Administration commands for maintaining Roundup trackers.
2222
'''
@@ -1050,6 +1050,10 @@ def do_export(self, args):
10501050
class colon_separated(csv.excel):
10511051
delimiter = ':'
10521052

1053+
# make sure target dir exists
1054+
if not os.path.exists(dir):
1055+
os.makedirs(dir)
1056+
10531057
# do all the classes specified
10541058
for classname in classes:
10551059
cl = self.get_class(classname)

0 commit comments

Comments
 (0)