Exception on a particular feed
Christopher Armstrong
radix at twistedmatrix.com
Sat May 24 00:07:06 EST 2008
On Fri, May 23, 2008 at 9:52 AM, Jon Auman <jon.auman at duke.edu> wrote:
> I don't know if this will help, but I had to install py-libxml2 module for
> python. Once I did that my feed exceptions to Wordpress went away.
> -Jon
Yes, that helped a bit. (wow, wtf? strange behavior for lack of a dependency)
The links work now, but strangely the *titles* are wrong now. Oh, I
just took a look at the atom source and I have an idea why. Either
Planet is failing to honor namespaces correctly or Wordpress isn't
doing a good job and indicating them. Oh, I bet it's the latter.
If you take a look at the source of
http://jncullinan.wordpress.com/feed/ , for example, it doesn't seem
there is a default XML namespace set. There are unqualified tags,
though, so I guess that means that it's invalid XML. Anyway, there's a
<title> tag that contains the real title of the post, and also a
<media:title> which contains something else, the latter of which is
being picked up as the title of the post by Planet.
Ok, yeah. It seems that all wordpress feeds are incorrect in this way,
but the problem isn't happening with all wordpress feeds - only ones
that actually contain some media: tags. Planet just seems to be making
a best guess at which one to use, in the face of faulty namespace
declarations.
--
Christopher Armstrong
International Man of Twistery
http://radix.twistedmatrix.com/
http://twistedmatrix.com/
http://canonical.com/
More information about the devel
mailing list