Re: Migrating Comments from Movable Type

Moof <[email protected]>
Newsgroups gmane.comp.web.pyblosxom.user
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Andy Todd wrote:
| Hi all,
|
| Does anyone have a nice easy way to migrate comments as well as entries
| from Movable Type to PyBlosxom?

I actually migrated from MT in a rather weird way, due to the plugins and
extra metadata I was using (with the MT-extrafields plugin). I felt that the
best program for interpreting the Movable Type database was Movable type
itself, so I ended up generating the directory tree using MT templates that
put everything in HTML along with some extra metadata into the appropriate
directory structure. I've written an entryparser which strips out the
metadata and passes on the HTML.

One bit of metadata I had in each post was the original MT entry number. I
wrote a quick utility which scanned through my directory structure and
associated entry IDs with filenames, and put it into a shelf. I also wrote
an MT Template that outputted a full pseudo-RSS 2.0 feed of all my comments,
which included the entry ID as one of the parts of the GUID. I then wrote a
quick XML parser which split the feed into comments, found the entry ID and
mapped it to a filename and wrote it in the appropriate place in the
directory tree.

I also intended to use the entry ID metadata to have a fun fiddle with
mod_rewrite and resurrect old permalinks. I haven't managed to get a round
tuit yet, so my blog has been in decline until I can sort that, and a couple
of other issues out.

If people are interested, when I get some free time (which may not be for a
couple of weeks at this rate), I could try and write up a HOWTO. I have a
suspicion that the little temporary scripts I wrote have disappeared, though
I still have the MT templates I used.

Moof
- --
Giles Antonio Radford - <http://metamoof.net/> - <http://wompom.com/>
python -c 'l = (("asynchat", 653, 658), ("httplib", 162, 170), ("pickle",
46, 53),("sched", 145, 149), ("re", 32, 35)); w=[__import__(x[0]).__doc__[
x[1]:x[2]] for x in l]; w[3] += w.pop(); print "".join(w)'
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Cygwin)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFAtL1/W3YaO5gYTxkRAsKSAJ4x65zgBsyeBPj3cYRHPoRxIop1ygCdEO1j
rwReCaFfvFrOx7Fslh9fjhM=
=iqas
-----END PGP SIGNATURE-----



-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.