Here's an excerpt from an email I sent to someone who was going to look at this, but I think hasn't yet. I got a little ways on it before getting distracted and never getting back to it.
Here's the files I was working with, and my own start at a python program to translate formats.
jake.py was my current effort that I stopped halfway through and haven't picked up again
"cvuuf_org-posts-export" was the original export from transition.cvuuf.org,
"cvuuf_org-posts-export-modified" was a changed version of that, where I normalized some links that were external. You can see a "if False" block at the top of jake.py that mostly generated it (and also within that, another if false block that generated a script to download the external links).
"staging-events" is an export from the new site, with events in the format I'm trying to match.
I tried it so far with 1 entry, by manually editing the output file so it had only one , then importing that, then debugging it. That's how I have one entry from 2010-11-19 here:
http://cvuuf.org/justice/community-forum/
I ran my program, cut out everything in the output except the last entry, then imported the resulting xml file. That did successfully import, but it was under "Drafts" in the events list here:
http://cvuuf.org/wp-admin/edit.php?post_type=event
(requires login)
I think it ended up without a correct end time or location, which I set manually and then it would allow me to save it. That's where I stopped.
I think it's mostly a matter of fiddling with the translation until it has all the fields it needs.
Here's an excerpt from an email I sent to someone who was going to look at this, but I think hasn't yet. I got a little ways on it before getting distracted and never getting back to it.
Here's the files I was working with, and my own start at a python program to translate formats.
I tried it so far with 1 entry, by manually editing the output file so it had only one- , then importing that, then debugging it. That's how I have one entry from 2010-11-19 here:
http://cvuuf.org/justice/community-forum/
I ran my program, cut out everything in the output except the last entry, then imported the resulting xml file. That did successfully import, but it was under "Drafts" in the events list here: http://cvuuf.org/wp-admin/edit.php?post_type=event (requires login)
I think it ended up without a correct end time or location, which I set manually and then it would allow me to save it. That's where I stopped.
I think it's mostly a matter of fiddling with the translation until it has all the fields it needs.
forum-post-importing.zip