Changeset 1161

Show
Ignore:
Timestamp:
08/19/06 01:16:47 (2 years ago)
Author:
athomas
Message:

XmlRpcPlugin:

Add wiki.wikiToHtml() call. Closes #435.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • xmlrpcplugin/0.10/tracrpc/wiki.py

    r1070 r1161  
    4242        yield ('WIKI_DELETE', ((bool, str),), self.deleteAttachment) 
    4343        yield ('WIKI_VIEW', ((list, str),), self.listLinks) 
     44        yield ('WIKI_VIEW', ((str, str),), self.wikiToHtml) 
    4445 
    4546    def _to_timestamp(self, datetime): 
     
    158159        """ ''Not implemented'' """ 
    159160        return [] 
     161 
     162    def wikiToHtml(self, req, text): 
     163        """ Render arbitrary Wiki text as HTML. """ 
     164        return wiki_to_html(text, self.env, req, absurls=1)