All 3 of these scripts are supposed to be end-user scripts that can be run with the Allura codebase but on an end-user's machine and not on the server, so we shouldn't query mongo. Really, we should have an extra parameter passed through for neighborhood here. And it'll have to do some hard-coded munging, I suppose, to handle the u/ shortname_prefix for user-projects :( Or maybe strip that part before passing to the script, and the scripts don't have to worry about the u/ part then.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Tracker imported, but wiki got this error, perhaps because user-projects have their shortname_prefix "u/" included in their shortname.
File "/nfs/home/dbrondsema/tracwikiimporter/tracwikiimporter/importer.py", line 117, in import_tool
load_data(f.name, WikiFromTrac.parser(), options)
File "/nfs/home/dbrondsema/tracwikiimporter/tracwikiimporter/scripts/wiki_from_trac/loaders.py", line 54, in load_data
import_wiki(cli, options.project, options.wiki, options, doc_txt)
File "/nfs/home/dbrondsema/tracwikiimporter/tracwikiimporter/scripts/wiki_from_trac/loaders.py", line 74, in import_wiki
r = cli.call(url + '/' + title, **page)
File "/home/dbrondsema/dbrondsema-1019/forge/Allura/allura/lib/import_api.py", line 64, in call
raise e
HTTPError: HTTP Error 404: Not Found (http://sf-dbrondsema-1015.sb.sf.net/rest/p/u/admin1/wiki-gar2/GarPackagingTutorial)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
allura:tv/7114
tracwikiimporter:tv/7114
All 3 of these scripts are supposed to be end-user scripts that can be run with the Allura codebase but on an end-user's machine and not on the server, so we shouldn't query mongo. Really, we should have an extra parameter passed through for neighborhood here. And it'll have to do some hard-coded munging, I suppose, to handle the u/ shortname_prefix for user-projects :( Or maybe strip that part before passing to the script, and the scripts don't have to worry about the u/ part then.
New commits on both repos.
Tracker imported, but wiki got this error, perhaps because user-projects have their shortname_prefix "u/" included in their shortname.
New commit on tracwikiimporter:tv/7114
Latest commit doesn't work for subprojects or other neighborhoods. I've added a commit to tv/7114 for your review which should handle those properly.
Nice, that's much better than mine, thanks. Both repos merged.