|
16 | 16 | # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, |
17 | 17 | # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. |
18 | 18 | # |
19 | | -# $Id: admin.py,v 1.67 2004-04-05 23:43:03 richard Exp $ |
| 19 | +# $Id: admin.py,v 1.68 2004-04-17 01:47:37 richard Exp $ |
20 | 20 |
|
21 | 21 | '''Administration commands for maintaining Roundup trackers. |
22 | 22 | ''' |
@@ -1020,9 +1020,11 @@ def do_export(self, args): |
1020 | 1020 | '''Usage: export [class[,class]] export_dir |
1021 | 1021 | Export the database to colon-separated-value files. |
1022 | 1022 |
|
| 1023 | + Optionally limit the export to just the names classes. |
| 1024 | +
|
1023 | 1025 | This action exports the current data from the database into |
1024 | 1026 | colon-separated-value files that are placed in the nominated |
1025 | | - destination directory. The journals are not exported. |
| 1027 | + destination directory. |
1026 | 1028 | ''' |
1027 | 1029 | # grab the directory to export to |
1028 | 1030 | if len(args) < 1: |
@@ -1068,11 +1070,16 @@ def do_export(self, args): |
1068 | 1070 |
|
1069 | 1071 | def do_import(self, args): |
1070 | 1072 | '''Usage: import import_dir |
1071 | | - Import a database from the directory containing CSV files, one per |
| 1073 | + Import a database from the directory containing CSV files, two per |
1072 | 1074 | class to import. |
1073 | 1075 |
|
1074 | | - The files must define the same properties as the class (including |
1075 | | - having a "header" line with those property names.) |
| 1076 | + The files used in the import are: |
| 1077 | +
|
| 1078 | + <class>.csv |
| 1079 | + This must define the same properties as the class (including |
| 1080 | + having a "header" line with those property names.) |
| 1081 | + <class>-journals.csv |
| 1082 | + This defines the journals for the items being imported. |
1076 | 1083 |
|
1077 | 1084 | The imported nodes will have the same nodeid as defined in the |
1078 | 1085 | import file, thus replacing any existing content. |
|
0 commit comments