Opened 9 years ago

Closed 8 years ago

#845 closed defect (fixed)

fail for marshaling on wiki.wikiToHtml()

Reported by: gotoh Owned by: athomas
Priority: normal Component: XmlRpcPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.10


The method wiki.wikiToHtml() cause error:

cannot marshal <class 'trac.util.html.Markup'> objects

Here is a patch to fix.


    168168    def wikiToHtml(self, req, text):
    169169        """ Render arbitrary Wiki text as HTML. """
    170         return wiki_to_html(text, self.env, req, absurls=1)
     170        return unicode(wiki_to_html(text, self.env, req, absurls=1))

Attachments (0)

Change History (2)

comment:1 Changed 8 years ago by davidvm

Thanks for this patch -- my installation now works!

comment:2 Changed 8 years ago by athomas

  • Resolution set to fixed
  • Status changed from new to closed

(In [1735]) Applied patches from gotoh and stp, thanks. Closes #434 and #845.

Add Comment

Modify Ticket

as closed The owner will remain athomas.
The resolution will be deleted. Next status will be 'reopened'.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.