Mercurial > p > roundup > code
comparison roundup/admin.py @ 3287:7a7f7d3a038d
merge from maint-0-8
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Wed, 13 Apr 2005 07:01:05 +0000 |
| parents | 9ddf9cd8baf5 |
| children | a615cc230160 |
comparison
equal
deleted
inserted
replaced
| 3284:9ddf9cd8baf5 | 3287:7a7f7d3a038d |
|---|---|
| 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.90 2005-04-13 06:55:44 richard Exp $ | 19 # $Id: admin.py,v 1.91 2005-04-13 07:01:05 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 |
| 1124 continue | 1124 continue |
| 1125 | 1125 |
| 1126 cl = self.get_class(classname) | 1126 cl = self.get_class(classname) |
| 1127 | 1127 |
| 1128 # ensure that the properties and the CSV file headings match | 1128 # ensure that the properties and the CSV file headings match |
| 1129 f = open(os.path.join(dir, file), 'rU') | 1129 f = open(os.path.join(dir, file), 'r') |
| 1130 reader = csv.reader(f, colon_separated) | 1130 reader = csv.reader(f, colon_separated) |
| 1131 file_props = None | 1131 file_props = None |
| 1132 maxid = 1 | 1132 maxid = 1 |
| 1133 # loop through the file and create a node for each entry | 1133 # loop through the file and create a node for each entry |
| 1134 for r in reader: | 1134 for r in reader: |
