ametaireau/pelican — pull request #345 by sametmax (2012-05-13 15:21:57+00:00)
Title: Handle empty posts in wordpress import by ignoring them

Hello alexi,

We are assessing pelican as an option to replace our wordpress fat baby (sametmax.com, french python related blog) for something, well frankly anything different :-)

In the process we tried to import the posts but ran into the problem I discribed here: https://github.com/ametaireau/pelican/issues/342

Here is a patch that solves this in a quick and dirty way. I took the time to add a unit test, which implied creating the wordpress XML import testing bit, so I added an anonymised sample of XML to go with it.

This XML could be useful if you wish to create more tests.