git.ucc.asn.au
/
planet-ucc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added crontab for running Planet UCC
[planet-ucc.git]
/
XMLWriter.py
diff --git
a/XMLWriter.py
b/XMLWriter.py
index
8a443ba
..
93ffe06
100644
(file)
--- a/
XMLWriter.py
+++ b/
XMLWriter.py
@@
-113,15
+113,24
@@
class XHTMLWriter:
output += '<head>\n'
output += '<title>Planet UCC</title>\n'
output += '<link rel="stylesheet" href="planet.css" type="text/css" media="screen" />\n'
output += '<head>\n'
output += '<title>Planet UCC</title>\n'
output += '<link rel="stylesheet" href="planet.css" type="text/css" media="screen" />\n'
+ output += '<link rel="icon" type="image/png" href="icon.png" />\n'
output += '</head>\n'
output += '<body>\n'
output += '<div id="header">\n'
output += '</head>\n'
output += '<body>\n'
output += '<div id="header">\n'
+ try:
+ output += open('header.html').read()
+ except:
+ pass
output += '</div>\n'
output += '<div id="sidebar">\n'
try:
output += open('sidebar.html').read()
except:
pass
output += '</div>\n'
output += '<div id="sidebar">\n'
try:
output += open('sidebar.html').read()
except:
pass
+ output += '<h2>Last Updated</h2>\n'
+ output += '<p>\n'
+ output += '%s\n' % time.strftime('%A %B %d, %Y %H:%M', time.localtime())
+ output += '</p>\n'
if self.parent:
output += '<h2>Feeds</h2>\n'
output += '<p>\n'
if self.parent:
output += '<h2>Feeds</h2>\n'
output += '<p>\n'
UCC
git Repository :: git.ucc.asn.au