summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: de31b71)
raw | patch | inline | side by side (parent: de31b71)
author | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Sat, 17 Apr 2004 01:47:37 +0000 (01:47 +0000) | ||
committer | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Sat, 17 Apr 2004 01:47:37 +0000 (01:47 +0000) |
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@2285 57a73879-2fb5-44c3-a270-3262357dd7e2
roundup/admin.py | patch | blob | history |
diff --git a/roundup/admin.py b/roundup/admin.py
index 2fe8c6f53951515ff63e409637fafe5949b4062e..a2e7e7864d64689db8f06b9b6b331595843700ba 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.67 2004-04-05 23:43:03 richard Exp $
+# $Id: admin.py,v 1.68 2004-04-17 01:47:37 richard Exp $
'''Administration commands for maintaining Roundup trackers.
'''
'''Usage: export [class[,class]] export_dir
Export the database to colon-separated-value files.
+ Optionally limit the export to just the names classes.
+
This action exports the current data from the database into
colon-separated-value files that are placed in the nominated
- destination directory. The journals are not exported.
+ destination directory.
'''
# grab the directory to export to
if len(args) < 1:
def do_import(self, args):
'''Usage: import import_dir
- Import a database from the directory containing CSV files, one per
+ Import a database from the directory containing CSV files, two per
class to import.
- The files must define the same properties as the class (including
- having a "header" line with those property names.)
+ The files used in the import are:
+
+ <class>.csv
+ This must define the same properties as the class (including
+ having a "header" line with those property names.)
+ <class>-journals.csv
+ This defines the journals for the items being imported.
The imported nodes will have the same nodeid as defined in the
import file, thus replacing any existing content.