comparison roundup/admin.py @ 3213:fe8fe2f631a9 maint-0.8

added content to ZRoundup refresh.txt file [SF#1147622] fix invalid reference to csv.colon_separated correct URL to What's New in setup.py meta-data
author Richard Jones <richard@users.sourceforge.net>
date Mon, 28 Feb 2005 03:13:42 +0000
parents afb69535a3a1
children db4941bcd0c0
comparison
equal deleted inserted replaced
3211:e330f751828e 3213:fe8fe2f631a9
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.2 2005-02-16 14:16:51 a1s Exp $ 19 # $Id: admin.py,v 1.85.2.3 2005-02-28 03:13:42 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
1118 1118
1119 cl = self.get_class(classname) 1119 cl = self.get_class(classname)
1120 1120
1121 # ensure that the properties and the CSV file headings match 1121 # ensure that the properties and the CSV file headings match
1122 f = open(os.path.join(dir, file), 'rU') 1122 f = open(os.path.join(dir, file), 'rU')
1123 reader = csv.reader(f, csv.colon_separated) 1123 reader = csv.reader(f, colon_separated)
1124 file_props = None 1124 file_props = None
1125 maxid = 1 1125 maxid = 1
1126 # loop through the file and create a node for each entry 1126 # loop through the file and create a node for each entry
1127 for r in reader: 1127 for r in reader:
1128 if file_props is None: 1128 if file_props is None:
1136 1136
1137 f.close() 1137 f.close()
1138 1138
1139 # import the journals 1139 # import the journals
1140 f = open(os.path.join(args[0], classname + '-journals.csv'), 'rU') 1140 f = open(os.path.join(args[0], classname + '-journals.csv'), 'rU')
1141 reader = csv.reader(f, csv.colon_separated) 1141 reader = csv.reader(f, colon_separated)
1142 cl.import_journals(reader) 1142 cl.import_journals(reader)
1143 f.close() 1143 f.close()
1144 1144
1145 # set the id counter 1145 # set the id counter
1146 print 'setting', classname, maxid+1 1146 print 'setting', classname, maxid+1

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