[Moin-devel] [ moin-Bugs-930036 ] RSS feed dies with comments
SourceForge.net
noreply at sourceforge.net
Thu Apr 29 10:42:00 EDT 2004
Bugs item #930036, was opened at 2004-04-05 23:24
Message generated for change (Comment added) made by thomaswaldmann
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=108482&aid=930036&group_id=8482
Category: None
Group: None
>Status: Closed
Resolution: None
Priority: 5
Submitted By: Robert Kaye (mayhemchaos)
Assigned to: Nobody/Anonymous (nobody)
Summary: RSS feed dies with comments
Initial Comment:
The RSS feed feature dies whenever it attempts to
process a change that has a comment filled out.
This is moin moin 1.2 and 1.2.1:
Python Python 2.3.3: /usr/bin/python
Linux grunt 2.4.24 #2 Thu Jan 15 14:08:29 PST 2004 i686
MoinMoin Release 1.2.1 [Revision 1.184]
Mon Apr 5 14:08:32 2004
----------------------------------------------------------------------
>Comment By: Thomas Waldmann (thomaswaldmann)
Date: 2004-04-29 19:41
Message:
Logged In: YES
user_id=100649
The problematic code will be removed in 1.2.2.
----------------------------------------------------------------------
Comment By: Michael P. Soulier (msoulier)
Date: 2004-04-23 04:11
Message:
Logged In: YES
user_id=470843
This patch just worked beautifully for me. Hopefully someone
will pay attention and incorporate it!
Thanks.
----------------------------------------------------------------------
Comment By: fuji-climb (fuji-climb)
Date: 2004-04-22 05:51
Message:
Logged In: YES
user_id=1014218
I sent a patch for this to the list, but got no response
from anyone.
This patch solved this issue, at least for me.
--- orig/MoinMoin/wikixml/util.py
+++ mod/MoinMoin/wikixml/util.py
@@ -50,6 +50,32 @@
self.endPrefixMapping(prefix or None)
saxutils.XMLGenerator.endDocument(self)
+ def startElementNS(self, name, qname, attrs):
+ # this code is a bit modified version of
python2.3/xml/sax/saxutils.py
+ # i needed this because startElementNS() in saxutils.py
+ # cannot handle attr whose name[0] is None, and
action/rss_rc.py
+ # set this to None (ex. name = (None, 'link')).
+ if name[0] is None:
+ # if the name was not namespace-scoped, use the
unqualified part
+ name = name[1]
+ else:
+ # else try to restore the original prefix from
the namespace
+ name = self._current_context[name[0]] + ":" +
name[1]
+ self._out.write('<' + name)
+
+ for pair in self._undeclared_ns_maps:
+ self._out.write(' xmlns:%s="%s"' % pair)
+ self._undeclared_ns_maps = []
+
+ for (name, value) in attrs.items():
+ if name[0] is None:
+ # if the name was not namespace-scoped, use
the unqualified part
+ name = name[1]
+ else:
+ name = self._current_context[name[0]] + ":"
+ name[1]
+ self._out.write(' %s=%s' % (name,
saxutils.quoteattr(value)))
+ self._out.write('>')
+
class RssGenerator(XMLGenerator):
default_xmlns = {
----------------------------------------------------------------------
Comment By: Michael P. Soulier (msoulier)
Date: 2004-04-22 03:52
Message:
Logged In: YES
user_id=470843
I'm not sure if it's when there's a comment, but mine is
certainly dying.
http://opag.ca/wiki/RecentChanges?action=rss_rc
I'd love a fix for this. I prefer to track wiki changes via
the rss feed.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=108482&aid=930036&group_id=8482
More information about the Moin-devel
mailing list