/usr/share/doc/python-genshi-doc/examples/tutorial/geddit/templates/info.xml is in python-genshi-doc 0.6-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | <?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom"
xmlns:py="http://genshi.edgewall.org/">
<title>Geddit: ${link.title}</title>
<id href="${url('/info/%s/' % link.id)}"/>
<link rel="alternate" href="${url('/info/%s/' % link.id)}" type="text/html"/>
<link rel="self" href="${url('/feed/%s/' % link.id)}" type="application/atom+xml"/>
<updated py:with="time=link.comments and link.comments[-1].time or link.time">
${time.isoformat()}
</updated>
<?python from genshi import HTML ?>
<entry py:for="idx, comment in enumerate(reversed(link.comments))">
<title>Comment ${len(link.comments) - idx} on “${link.title}”</title>
<link rel="alternate" href="${url('/info/%s/' % link.id)}#comment${idx}"
type="text/html"/>
<id>${url('/info/%s/' % link.id)}#comment${idx}</id>
<author>
<name>${comment.username}</name>
</author>
<updated>${comment.time.isoformat()}</updated>
<content type="xhtml"><div xmlns="http://www.w3.org/1999/xhtml">
${HTML(comment.content)}
</div></content>
</entry>
</feed>
|