git.ucc.asn.au
/
planet-ucc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
362f28b
)
bling
author
davyd
<davyd>
Sat, 6 Mar 2004 06:57:33 +0000
(06:57 +0000)
committer
davyd
<davyd>
Sat, 6 Mar 2004 06:57:33 +0000
(06:57 +0000)
RSS1Writer.py
patch
|
blob
|
history
diff --git
a/RSS1Writer.py
b/RSS1Writer.py
index
638047e
..
571998c
100644
(file)
--- a/
RSS1Writer.py
+++ b/
RSS1Writer.py
@@
-29,11
+29,11
@@
class RSS1Writer:
def write(self):
itemcount = 0
def write(self):
itemcount = 0
- output = ''
- output += '<rdf:RDF\n'
+ output = '<rss version="1.0\n'
output += ' xmlns:dc="http://purl.org/dc/elements/1.1/"\n'
output += ' xmlns:content="http://purl.org/rss/1.0/modules/content/">\n'
output += ' xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">\n'
output += ' xmlns:dc="http://purl.org/dc/elements/1.1/"\n'
output += ' xmlns:content="http://purl.org/rss/1.0/modules/content/">\n'
output += ' xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">\n'
+ output += '<rdf:RDF>\n'
output += ' <channel>\n'
output += ' <title>Planet UCC</title>\n'
output += ' <link>http://planet.ucc.asn.au/</link>\n'
output += ' <channel>\n'
output += ' <title>Planet UCC</title>\n'
output += ' <link>http://planet.ucc.asn.au/</link>\n'
@@
-53,4
+53,5
@@
class RSS1Writer:
if itemcount >= self.maxitems:
break
output += '</rdf:RDF>\n'
if itemcount >= self.maxitems:
break
output += '</rdf:RDF>\n'
+ output += '</rss>'
return output
return output
UCC
git Repository :: git.ucc.asn.au