Mercurial > p > roundup > code
diff roundup/admin.py @ 1529:96dcb9cb6d6f maint-0.5
only look for csv files on import
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Tue, 18 Mar 2003 23:19:22 +0000 |
| parents | 3a853f1c20b5 |
| children |
line wrap: on
line diff
--- a/roundup/admin.py Tue Mar 18 00:43:48 2003 +0000 +++ b/roundup/admin.py Tue Mar 18 23:19:22 2003 +0000 @@ -16,7 +16,7 @@ # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. # -# $Id: admin.py,v 1.35.2.1 2003-02-06 05:44:49 richard Exp $ +# $Id: admin.py,v 1.35.2.2 2003-03-18 23:19:22 richard Exp $ '''Administration commands for maintaining Roundup trackers. ''' @@ -939,6 +939,10 @@ from roundup import hyperdb for file in os.listdir(args[0]): + # we only care about CSV files + if not file.endswith('.csv'): + continue + f = open(os.path.join(args[0], file)) # get the classname
