Mercurial > p > roundup > code
comparison roundup/admin.py @ 3286:239566bf5d33 maint-0.8
"fix" roundup-admin "import" to not use "universal newline support"...
...since the csv module appears to have its own ideas about such
things [SF#1163890]
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Wed, 13 Apr 2005 07:00:21 +0000 |
| parents | db4941bcd0c0 |
| children | 5e45f3a553d8 |
comparison
equal
deleted
inserted
replaced
| 3285:db4941bcd0c0 | 3286:239566bf5d33 |
|---|---|
| 14 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS | 14 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS |
| 15 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS" | 15 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS" |
| 16 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, | 16 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, |
| 17 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. | 17 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. |
| 18 # | 18 # |
| 19 # $Id: admin.py,v 1.85.2.4 2005-04-13 06:57:09 richard Exp $ | 19 # $Id: admin.py,v 1.85.2.5 2005-04-13 07:00:21 richard Exp $ |
| 20 | 20 |
| 21 '''Administration commands for maintaining Roundup trackers. | 21 '''Administration commands for maintaining Roundup trackers. |
| 22 ''' | 22 ''' |
| 23 __docformat__ = 'restructuredtext' | 23 __docformat__ = 'restructuredtext' |
| 24 | 24 |
| 1121 continue | 1121 continue |
| 1122 | 1122 |
| 1123 cl = self.get_class(classname) | 1123 cl = self.get_class(classname) |
| 1124 | 1124 |
| 1125 # ensure that the properties and the CSV file headings match | 1125 # ensure that the properties and the CSV file headings match |
| 1126 f = open(os.path.join(dir, file), 'rU') | 1126 f = open(os.path.join(dir, file), 'r') |
| 1127 reader = csv.reader(f, colon_separated) | 1127 reader = csv.reader(f, colon_separated) |
| 1128 file_props = None | 1128 file_props = None |
| 1129 maxid = 1 | 1129 maxid = 1 |
| 1130 # loop through the file and create a node for each entry | 1130 # loop through the file and create a node for each entry |
| 1131 for r in reader: | 1131 for r in reader: |
