ajack 2003/09/09 16:00:26
Modified: python/gump rss.py
Log:
Do RRS for all, just for testing...
Revision Changes Path
1.4 +15 -10 jakarta-gump/python/gump/rss.py
Index: rss.py
===================================================================
RCS file: /home/cvs/jakarta-gump/python/gump/rss.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- rss.py 9 Sep 2003 19:37:07 -0000 1.3
+++ rss.py 9 Sep 2003 23:00:26 -0000 1.4
@@ -98,7 +98,7 @@
<link>http://jakarta.apache.org/gump/</link>
<description>Life is like a box of chocolates</description>
- <admin:generatorAgent
rdf:resource="http://cvs.apache.org/viewcvs/jakarta-gump/python/gumprss.py"/>
+ <admin:generatorAgent
rdf:resource="http://cvs.apache.org/viewcvs/jakarta-gump/python/gump/rss.py"/>
<admin:errorReportsTo rdf:resource="mailto:[EMAIL PROTECTED]"/>
<sy:updateFrequency>1</sy:updateFrequency>
@@ -113,9 +113,11 @@
s=db.getProjectStats(pctxt.name)
# State changes that are newsworthy...
- if not s.currentState == s.previousState \
- and not s.currentState == STATUS_PREREQ_FAILURE \
- and not s.currentState == STATUS_COMPLETE :
+ # :TODO: Remove 1, this is for testing...
+ #if not s.currentState == s.previousState \
+ # and not s.currentState == STATUS_PREREQ_FAILURE \
+ # and not s.currentState == STATUS_COMPLETE :
+ if 1
project=pctxt.project
log.info("RSS written for " + pctxt.name);
@@ -124,7 +126,7 @@
datestr=time.strftime('%Y-%m-%d')
timestr=time.strftime('%H%M')
- content='Testing....'
+ content='Project ' + pctxt.name + ' : ' +
stateName(pctxt.status)
# write out the item to the rss feed
gumprss.write("""
@@ -135,7 +137,10 @@
<dc:subject>%s</dc:subject>
<dc:date>%sT%s%s</dc:date>
</item>""" % \
- (pctxt.name,stateName(pctxt.status),datestr, link,
content, module[project], datestr,timestr,TZ))
+ (pctxt.name,stateName(pctxt.status),datestr, link, \
+ content, \
+ module[project], \
+ datestr,timestr,TZ))
# complete the rss feed
gumprss.write("""
@@ -144,7 +149,7 @@
""")
gumprss.close()
- log.info("RSS Feed written" + rssFile);
+ log.info("RSS Newsfeed written" + rssFile);
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]