Error with wordpress-feeds
Juan Pizarro
jpizarrom at gmail.com
Thu Oct 9 04:48:00 EST 2008
Hi.
My name is Juan Pizarro, from Chile.
I found a problem with the planet and wordpress feeds.
When the planet update the posts from a wordpress, only can read the
last post.
The problem is in line 883 from __init__.py in version "nightly snapshot
09-10-2008", when try to read a key with name "type", and this not
exist.
The solution, that i fount is:
883,886c883,887
< if item.type == 'text/html':
< item.value = sanitize.HTML(item.value)
< elif item.type == 'text/plain':
< item.value = escape(item.value)
---
> if item.has_key('type'):
> if item.type == 'text/html':
> item.value = sanitize.HTML(item.value)
> elif item.type == 'text/plain':
> item.value = escape(item.value)
ps: sorry for my english.
--
Juan Pizarro
Estudiante de Ingeniería Civil en Computación
Universidad de Talca, Chile
Mail: jpizarrom at gmail.com
Jabber: jpizarrom at jabber.org
Fecha: miércoles 08 octubre 2008
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Esta parte del mensaje =?ISO-8859-1?Q?est=E1?= firmada
digitalmente
Url : /archives/devel/attachments/20081008/5e91cf4a/attachment.pgp
More information about the devel
mailing list