Skip to content

Commit

Permalink
<author> element was forgotten in the serialization
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephane Bortzmeyer committed Oct 8, 2012
1 parent cf9b8ef commit 96a5b71
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 6 additions & 1 deletion FeedParserPlus.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,14 @@
<summary tal:condition="entry/summary" tal:content="entry/summary"/>
<content tal:condition="entry/content" tal:content="python: entry.content[0]['value']"/> <!-- TODO: metadata and the other items in content -->
<id tal:condition="entry/id" tal:content="entry/id"/>
<author tal:condition="entry/author">
<name tal:content="python: entry.authors[0]['name']"/>
<email tal:content="python: entry.authors[0]['email']"/>
<!-- <uri tal:content="python: entry.authors[0]['uri']"/> TODO: not available with FeedParser :-( -->
</author>
<published tal:condition="entry/published" tal:content="entry/published"/>
<updated tal:condition="entry/updated" tal:content="entry/updated"/>
<!-- TODO other entry fields -->
<!-- TODO other entry fields? <link>? -->
</entry>
</feed>
"""
Expand Down
2 changes: 2 additions & 0 deletions test-parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,6 @@

for atom in sys.argv[1:]:
atom_feed = FeedParserPlus.parse(open(atom).read())
#print atom_feed.serialize()


0 comments on commit 96a5b71

Please sign in to comment.