You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@gump.apache.org by aj...@apache.org on 2004/01/07 19:12:50 UTC
cvs commit: jakarta-gump/python/gump/syndication rss.py atom.py
ajack 2004/01/07 10:12:50
Modified: python/gump/syndication rss.py atom.py
Log:
Commit a fix for RSS module crash, to test fix...
Revision Changes Path
1.12 +4 -4 jakarta-gump/python/gump/syndication/rss.py
Index: rss.py
===================================================================
RCS file: /home/cvs/jakarta-gump/python/gump/syndication/rss.py,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- rss.py 6 Jan 2004 21:35:45 -0000 1.11
+++ rss.py 7 Jan 2004 18:12:50 -0000 1.12
@@ -318,7 +318,7 @@
('%sT%s%s') % (datestr,timestr,TZ))
# Generate changes, only if the module had changed
- if module.isUpdated() and not module.getState().isUnset():
+ if module.isUpdated() and not module.getStatePair().isUnset():
moduleRSS.addItem(item)
# State changes that are newsworthy...
@@ -359,9 +359,9 @@
('%sT%s%s') % (datestr,timestr,TZ))
# Generate changes, only if the module changed
- if project.getModule().isUpdated() and not project.getState().isUnset():
- projectRSS.addItem(item)
- moduleRSS.addItem(item)
+ if project.getModule().isUpdated() and not project.getStatePair().isUnset():
+ projectRSS.addItem(item)
+ moduleRSS.addItem(item)
# State changes that are newsworthy...
if self.projectOughtBeWidelySyndicated(project) :
1.3 +3 -5 jakarta-gump/python/gump/syndication/atom.py
Index: atom.py
===================================================================
RCS file: /home/cvs/jakarta-gump/python/gump/syndication/atom.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- atom.py 6 Jan 2004 23:44:25 -0000 1.2
+++ atom.py 7 Jan 2004 18:12:50 -0000 1.3
@@ -246,11 +246,9 @@
content )
# Generate changes, only if the project changed
- if project.getModule().isUpdated():
- if not s.currentState == STATE_NONE and \
- not s.currentState == STATE_UNSET:
- projectFeed.addEntry(entry)
- moduleFeed.addEntry(entry)
+ if project.getModule().isUpdated() and not project.getStatePair().isUnset():
+ projectFeed.addEntry(entry)
+ moduleFeed.addEntry(entry)
# State changes that are newsworthy...
if self.projectOughtBeWidelySyndicated(project) :