Mercurial > p > roundup > code
comparison scripts/import_sf.py @ 3536:00a7983b4666
*** empty log message ***
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Fri, 03 Feb 2006 04:12:36 +0000 |
| parents | ad9f06e32f7c |
| children | d819ff1b3116 |
comparison
equal
deleted
inserted
replaced
| 3535:75dc225613cc | 3536:00a7983b4666 |
|---|---|
| 1 ''' Import tracker data from Sourceforge.NET | |
| 2 | |
| 3 This script needs four steps to work: | |
| 4 | |
| 5 1. Export the project XML data using the admin web interface at sf.net | |
| 6 2. Run the file fetching (these are not included in the XML): | |
| 7 | |
| 8 import_sf.py files <path to XML> <path to files dir> | |
| 9 | |
| 10 this will place all the downloaded files in the files dir by file id. | |
| 11 3. Convert the sf.net XML to Roundup "export" format: | |
| 12 | |
| 13 import_sf.py import <tracker home> <path to XML> <path to files dir> | |
| 14 | |
| 15 this will generate a directory "/tmp/imported" which contains the | |
| 16 data to be imported into a Roundup tracker. | |
| 17 4. Import the data: | |
| 18 | |
| 19 roundup-admin -i <tracker home> import /tmp/imported | |
| 20 | |
| 21 And you're done! | |
| 22 ''' | |
| 23 | |
| 1 import sys, sets, os, csv, time, urllib2, httplib, mimetypes | 24 import sys, sets, os, csv, time, urllib2, httplib, mimetypes |
| 2 from elementtree import ElementTree | 25 from elementtree import ElementTree |
| 3 | 26 |
| 4 from roundup import instance, hyperdb, date, support, password | 27 from roundup import instance, hyperdb, date, support, password |
| 5 | 28 |
