comparison roundup/admin.py @ 2794:b602054c97d3 maint-0.7

merge from HEAD
author Richard Jones <richard@users.sourceforge.net>
date Wed, 20 Oct 2004 04:50:15 +0000
parents 3550ad56137a
children 4e76183f51cc
comparison
equal deleted inserted replaced
2791:65337f817b50 2794:b602054c97d3
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.68.2.4 2004-06-25 22:22:59 richard Exp $ 19 # $Id: admin.py,v 1.68.2.5 2004-10-20 04:50:15 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
1089 continue 1089 continue
1090 1090
1091 cl = self.get_class(classname) 1091 cl = self.get_class(classname)
1092 1092
1093 # ensure that the properties and the CSV file headings match 1093 # ensure that the properties and the CSV file headings match
1094 f = open(os.path.join(dir, file)) 1094 f = open(os.path.join(dir, file), 'rU')
1095 reader = rcsv.reader(f, rcsv.colon_separated) 1095 reader = rcsv.reader(f, rcsv.colon_separated)
1096 file_props = None 1096 file_props = None
1097 maxid = 1 1097 maxid = 1
1098 # loop through the file and create a node for each entry 1098 # loop through the file and create a node for each entry
1099 for r in reader: 1099 for r in reader:
1107 maxid = max(maxid, nodeid) 1107 maxid = max(maxid, nodeid)
1108 1108
1109 f.close() 1109 f.close()
1110 1110
1111 # import the journals 1111 # import the journals
1112 f = open(os.path.join(args[0], classname + '-journals.csv')) 1112 f = open(os.path.join(args[0], classname + '-journals.csv'), 'rU')
1113 reader = rcsv.reader(f, rcsv.colon_separated) 1113 reader = rcsv.reader(f, rcsv.colon_separated)
1114 cl.import_journals(reader) 1114 cl.import_journals(reader)
1115 f.close() 1115 f.close()
1116 1116
1117 # set the id counter 1117 # set the id counter

Roundup Issue Tracker: http://roundup-tracker.org/