|
16 | 16 | # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, |
17 | 17 | # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. |
18 | 18 | # |
19 | | -# $Id: roundup-admin,v 1.24 2001-10-10 03:54:57 richard Exp $ |
| 19 | +# $Id: roundup-admin,v 1.25 2001-10-10 04:12:32 richard Exp $ |
20 | 20 |
|
21 | 21 | import sys |
22 | 22 | if int(sys.version[0]) < 2: |
@@ -384,7 +384,10 @@ def do_import(db, args): |
384 | 384 | Import the contents of the CSV file as new nodes for the given class. |
385 | 385 |
|
386 | 386 | The file must define the same properties as the class (including having |
387 | | - a "header" line with those property names.) |
| 387 | + a "header" line with those property names.) The new nodes are added to |
| 388 | + the existing database - if you want to create a new database using the |
| 389 | + imported data, then create a new database (or, tediously, retire all |
| 390 | + the old data.) |
388 | 391 | ''' |
389 | 392 | if len(args) < 2: |
390 | 393 | print do_export.__doc__ |
@@ -562,6 +565,11 @@ if __name__ == '__main__': |
562 | 565 |
|
563 | 566 | # |
564 | 567 | # $Log: not supported by cvs2svn $ |
| 568 | +# Revision 1.24 2001/10/10 03:54:57 richard |
| 569 | +# Added database importing and exporting through CSV files. |
| 570 | +# Uses the csv module from object-craft for exporting if it's available. |
| 571 | +# Requires the csv module for importing. |
| 572 | +# |
565 | 573 | # Revision 1.23 2001/10/09 23:36:25 richard |
566 | 574 | # Spit out command help if roundup-admin command doesn't get an argument. |
567 | 575 | # |
|
0 commit comments