Mercurial > p > roundup > code
comparison roundup/admin.py @ 1539:800b5896e14a
fixed rdbms export - getnodeids in particular with NULL values
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Fri, 21 Mar 2003 04:02:13 +0000 |
| parents | a1e0d17ca12c |
| children | 6db2cbcd390e |
comparison
equal
deleted
inserted
replaced
| 1538:3fb2872f9b7d | 1539:800b5896e14a |
|---|---|
| 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.44 2003-03-18 23:15:29 richard Exp $ | 19 # $Id: admin.py,v 1.45 2003-03-21 04:02:12 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, shlex, shutil | 24 import sys, os, getpass, getopt, re, UserDict, shlex, shutil |
| 951 # include retired nodes) | 951 # include retired nodes) |
| 952 | 952 |
| 953 for nodeid in self.db.getclass(classname).getnodeids(): | 953 for nodeid in self.db.getclass(classname).getnodeids(): |
| 954 # get the regular props | 954 # get the regular props |
| 955 print >>f, p.join(cl.export_list(propnames, nodeid)) | 955 print >>f, p.join(cl.export_list(propnames, nodeid)) |
| 956 | |
| 957 # close this file | |
| 958 f.close() | |
| 956 return 0 | 959 return 0 |
| 957 | 960 |
| 958 def do_import(self, args): | 961 def do_import(self, args): |
| 959 '''Usage: import import_dir | 962 '''Usage: import import_dir |
| 960 Import a database from the directory containing CSV files, one per | 963 Import a database from the directory containing CSV files, one per |
