summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 1280ea0)
raw | patch | inline | side by side (parent: 1280ea0)
author | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Fri, 16 Aug 2002 04:26:42 +0000 (04:26 +0000) | ||
committer | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Fri, 16 Aug 2002 04:26:42 +0000 (04:26 +0000) |
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@955 57a73879-2fb5-44c3-a270-3262357dd7e2
TODO.txt | patch | blob | history | |
roundup/admin.py | patch | blob | history |
diff --git a/TODO.txt b/TODO.txt
index bebe7de71276f279796243dc730d526da3857b1b..63e0c91884107cff08fde75318492af25b23de0e 100644 (file)
--- a/TODO.txt
+++ b/TODO.txt
pending hyperdb: make creator, creation and activity available pre-commit
pending hyperdb: migrate "id" property to be Number type
pending hyperdb: allow classes to define their ordering (properties, asc/desc)
+pending hyperdb: entire database export and import (files, journals and all)
pending instance: including much simpler upgrade path and the use of
non-Python configuration files (ConfigParser)
pending instance: move the header link config out into an html template
diff --git a/roundup/admin.py b/roundup/admin.py
index bed62a43414ed97a88504f44b458f2cb1feeefbc..48b96d6026720611c13590deaf8577a8ab583411 100644 (file)
--- a/roundup/admin.py
+++ b/roundup/admin.py
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
#
-# $Id: admin.py,v 1.21 2002-08-01 01:07:37 richard Exp $
+# $Id: admin.py,v 1.22 2002-08-16 04:26:42 richard Exp $
import sys, os, getpass, getopt, re, UserDict, shlex, shutil
try:
return 0
def do_export(self, args):
- '''Usage: export class[,class] destination_dir
+ '''Usage: export [class[,class]] destination_dir
Export the database to tab-separated-value files.
This action exports the current data from the database into
tab-separated-value files that are placed in the nominated destination
directory. The journals are not exported.
'''
- if len(args) < 2:
+ # grab the directory to export to
+ if len(args) < 1:
raise UsageError, _('Not enough arguments supplied')
- classes = args[0].split(',')
- dir = args[1]
+ dir = args[-1]
+
+ # get the list of classes to export
+ if len(args) == 2:
+ classes = args[0].split(',')
+ else:
+ classes = self.db.classes.keys()
# use the csv parser if we can - it's faster
if csv is not None:
f.write(':'.join(cl.properties.keys()) + '\n')
# all nodes for this class
- properties = cl.properties.items()
+ properties = cl.getprops()
for nodeid in cl.list():
l = []
for prop, proptype in properties:
#
# $Log: not supported by cvs2svn $
+# Revision 1.21 2002/08/01 01:07:37 richard
+# include info about new user roles
+#
# Revision 1.20 2002/08/01 00:56:22 richard
# Added the web access and email access permissions, so people can restrict
# access to users who register through the email interface (for example).