comparison roundup/admin.py @ 3640:eab067227e81

Seems like node ids in the verbose option aren't integers. Fixed the format string for verbose printing. But this *had* worked for me before...
author Ralf Schlatterbeck <schlatterbeck@users.sourceforge.net>
date Sat, 15 Jul 2006 10:15:17 +0000
parents 31c79e3aa600
children ba06fb4030d0
comparison
equal deleted inserted replaced
3639:97f9fc0bc0ea 3640:eab067227e81
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.100 2006-07-15 10:04:32 schlatterbeck Exp $ 19 # $Id: admin.py,v 1.101 2006-07-15 10:15:17 schlatterbeck 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
1097 writer.writerow(fields) 1097 writer.writerow(fields)
1098 1098
1099 # all nodes for this class 1099 # all nodes for this class
1100 for nodeid in cl.getnodeids(): 1100 for nodeid in cl.getnodeids():
1101 if self.verbose: 1101 if self.verbose:
1102 sys.stdout.write ('Exporting %s - %d\r'%(classname, nodeid)) 1102 sys.stdout.write ('Exporting %s - %s\r'%(classname, nodeid))
1103 sys.stdout.flush () 1103 sys.stdout.flush ()
1104 writer.writerow(cl.export_list(propnames, nodeid)) 1104 writer.writerow(cl.export_list(propnames, nodeid))
1105 if hasattr(cl, 'export_files'): 1105 if hasattr(cl, 'export_files'):
1106 cl.export_files(dir, nodeid) 1106 cl.export_files(dir, nodeid)
1107 1107
1167 if file_props is None: 1167 if file_props is None:
1168 file_props = r 1168 file_props = r
1169 continue 1169 continue
1170 1170
1171 if self.verbose : 1171 if self.verbose :
1172 sys.stdout.write('Importing %s - %d\r'%(classname, n)) 1172 sys.stdout.write('Importing %s - %s\r'%(classname, n))
1173 sys.stdout.flush() 1173 sys.stdout.flush()
1174 1174
1175 # do the import and figure the current highest nodeid 1175 # do the import and figure the current highest nodeid
1176 nodeid = int(cl.import_list(file_props, r)) 1176 nodeid = int(cl.import_list(file_props, r))
1177 if hasattr(cl, 'import_files'): 1177 if hasattr(cl, 'import_files'):

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