Skip to content

Commit aa7fca4

Browse files
author
Richard Jones
committed
only look for csv files on import
1 parent 1f9e462 commit aa7fca4

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

CHANGES.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ are given with the most recent entry first.
66
- fixed sqlite rollback/caching bug (sf bug 689383)
77
- fixed rdbms table update detection logic (sf bug 703297)
88
- required String properties not being flagged (thanks Ajit George)
9+
- only look for CSV files when importing (thanks Dan Grassi)
910

1011

1112
2003-02-27 0.5.6

doc/index.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,24 +55,30 @@ Duncan Booth,
5555
Seb Brezel,
5656
Titus Brown,
5757
Roch'e Compaan,
58+
Hernan Martinez Foffani,
5859
Ajit George,
60+
Dan Grassi,
5961
Engelbert Gruber,
6062
Juergen Hermann,
6163
Tobias Hunger,
6264
James Kew,
6365
Sheila King,
66+
Bastian Kleineidam,
6467
Detlef Lannert,
6568
Andrey Lebedev,
6669
Gordon McMillan,
6770
Patrick Ohly,
71+
Luke Opperman,
6872
Will Partain,
6973
Bernhard Reiter,
7074
John P. Rouillard,
75+
Florian Schulze,
7176
Dougal Scott,
7277
Stefan Seefeld,
7378
Jeffrey P Shell,
7479
Joel Shprentz,
7580
Terrel Shumway,
81+
Nathaniel Smith,
7682
Mike Thompson.
7783

7884

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.35.2.1 2003-02-06 05:44:49 richard Exp $
19+
# $Id: admin.py,v 1.35.2.2 2003-03-18 23:19:22 richard Exp $
2020

2121
'''Administration commands for maintaining Roundup trackers.
2222
'''
@@ -939,6 +939,10 @@ class to import.
939939
from roundup import hyperdb
940940

941941
for file in os.listdir(args[0]):
942+
# we only care about CSV files
943+
if not file.endswith('.csv'):
944+
continue
945+
942946
f = open(os.path.join(args[0], file))
943947

944948
# get the classname

0 commit comments

Comments
 (0)