Modify

Opened 8 years ago

Closed 8 years ago

#845 closed defect (fixed)

fail for marshaling on wiki.wikiToHtml()

Reported by: Shun-ichi Goto <shunichi.goto@…> Owned by: athomas
Priority: normal Component: XmlRpcPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.10

Description

The method wiki.wikiToHtml() cause error:

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

Here is a patch to fix.

  • wiki.py

     
    167167 
    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 david.vanmaren@…

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

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.