Submitted by : simon at: 2003-10-26T21:32:34+00:00 (14 years ago)
Name :
Category : Severity : Status :
Optional subject :  
Optional comment :

Eg, the Zope Book Chapter 11 :

 2003-08-25T04:29:09 ERROR(200) SiteError http://zwiki.org/ZopeBookChapter11SearchingAndCategorizingContent
 Traceback (innermost last):
  File /usr/local/zope/software/lib/python/ZPublisher/Publish.py, line 98, in publish
  File /usr/local/zope/software/lib/python/ZPublisher/mapply.py, line 88, in mapply
    (Object: ZopeBookChapter11SearchingAndCategorizingContent)
  File /usr/local/zope/software/lib/python/ZPublisher/Publish.py, line 39, in call_object
    (Object: ZopeBookChapter11SearchingAndCategorizingContent)
  File /usr/local/zope/instance/Products/ZWiki/ZWikiPage.py, line 272, in __call__
    (Object: ZopeBookChapter11SearchingAndCategorizingContent)
  File /usr/local/zope/instance/Products/ZWiki/ZWikiPage.py, line 285, in render
    (Object: ZopeBookChapter11SearchingAndCategorizingContent)
  File /usr/local/zope/instance/Products/ZWiki/ZWikiPage.py, line 373, in render_msgstxprelinkdtmlfitissuehtml
    (Object: ZopeBookChapter11SearchingAndCategorizingContent)
  File /usr/local/zope/instance/Products/ZWiki/ZWikiPage.py, line 604, in renderMarkedLinksIn
    (Object: ZopeBookChapter11SearchingAndCategorizingContent)
  File /usr/local/mystuff/lib/python2.1/sre.py, line 63, in sub
  File /usr/local/mystuff/lib/python2.1/sre.py, line 164, in _sub
  File /usr/local/mystuff/lib/python2.1/sre.py, line 189, in _subn
  File /usr/local/mystuff/lib/python2.1/sre.py, line 123, in _join
  File /usr/local/mystuff/lib/python2.1/string.py, line 128, in join
 TypeError: sequence item 245: expected string, None found

I can't figure it out. Is this an re bug ?


comments:

... --simon, Mon, 25 Aug 2003 04:36:11 +0000 reply
:

    def renderMarkedLinksIn(self,text):
        """
        Render the links in text previously marked by findLinksIn.
        """
        return re.sub(markedwikilinkexpr,self.renderLink,text)

fixed --simon, Mon, 25 Aug 2003 04:46:28 +0000 reply
Ah, renderLink was indeed returning None for interwiki links.

property change --simon, Mon, 25 Aug 2003 04:46:48 +0000 reply
Status: open => closed