comparison roundup/admin.py @ 2092:332c040b82da maint-0.6

import/export test
author Richard Jones <richard@users.sourceforge.net>
date Sat, 20 Mar 2004 22:15:58 +0000
parents cc692b8b8fa9
children
comparison
equal deleted inserted replaced
2087:8e960088b44c 2092:332c040b82da
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.55.2.3 2004-03-05 00:06:20 richard Exp $ 19 # $Id: admin.py,v 1.55.2.4 2004-03-20 22:15:57 richard Exp $
20 20
21 '''Administration commands for maintaining Roundup trackers. 21 '''Administration commands for maintaining Roundup trackers.
22 ''' 22 '''
23 23
24 import sys, os, getpass, getopt, re, UserDict, shutil, rfc822 24 import sys, os, getpass, getopt, re, UserDict, shutil, rfc822
1090 # all nodes for this class (not using list() 'cos it doesn't 1090 # all nodes for this class (not using list() 'cos it doesn't
1091 # include retired nodes) 1091 # include retired nodes)
1092 1092
1093 for nodeid in self.db.getclass(classname).getnodeids(): 1093 for nodeid in self.db.getclass(classname).getnodeids():
1094 # get the regular props 1094 # get the regular props
1095 writer.writerow (cl.export_list(propnames, nodeid)) 1095 writer.writerow(cl.export_list(propnames, nodeid))
1096 1096
1097 # close this file 1097 # close this file
1098 f.close() 1098 f.close()
1099 return 0 1099 return 0
1100 1100

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