Fixed issue with alternate link instead of content for atom entries

...won't let me generate atom entries without a content tag even though
I have a correct link tag...
This commit is contained in:
Lars Kiesow 2013-09-23 14:35:59 +02:00
parent 647d96881e
commit 8b87fa67ad

View file

@ -73,7 +73,7 @@ class FeedEntry(object):
# An entry must contain an alternate link if there is no content element.
if not self.__atom_content:
if not True in [ l.get('type') == 'alternate' \
if not True in [ l.get('rel') == 'alternate' \
for l in self.__atom_link or [] ]:
raise ValueError('Entry must contain an alternate link or '
+ 'a content element.')