[csw-devel] SF.net SVN: opencsw:[582] twitter/sweets/template.feed
skayser at users.sourceforge.net
skayser at users.sourceforge.net
Thu Oct 27 22:59:35 CEST 2011
Revision: 582
http://opencsw.svn.sourceforge.net/opencsw/?rev=582&view=rev
Author: skayser
Date: 2011-10-27 20:59:35 +0000 (Thu, 27 Oct 2011)
Log Message:
-----------
twitter/sweets: fix ATOM template
Modified Paths:
--------------
twitter/sweets/template.feed
Modified: twitter/sweets/template.feed
===================================================================
--- twitter/sweets/template.feed 2011-10-27 19:07:30 UTC (rev 581)
+++ twitter/sweets/template.feed 2011-10-27 20:59:35 UTC (rev 582)
@@ -3,14 +3,13 @@
import platform
myuser = getpass.getuser()
mynode = platform.node()
-%>
-<?xml version="1.0" encoding="utf-8"?>
+%><?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>Twitter search results for "${query}"</title>
<id>tag:opencsw.org,2011-10-27:sweets:${query}</id>
- <author>${myuser}@${mynode}</author>
- <updated>${updated}</updated>
+ <author><name>${myuser}@${mynode}</name></author>
+ <updated>${updated}Z</updated>
<generator uri="http://opencsw.svn.sf.net/svnroot/opencsw/twitter/sweets/">
sweets2feed.py
</generator>
@@ -18,11 +17,10 @@
%for item in items:
<entry>
<title>${item['title']}</title>
- <link rel="alternate" type="text/html">${item['url']}</link>
+ <link rel="alternate" type="text/html" href="${item['url']}" />
<id>${item['url']}</id>
<updated>${item['updated']}</updated>
- <content></content>
- <entry>
+ </entry>
%endfor
</feed>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the devel
mailing list