コード例 #1
0
 def convertStringToPreview(self, content, content_type, instance):
     """
     convertStringToPreview(self, content) => Utility to convert a string to HTML
     using the converter stuff.
     """
     LOG.debug("convertStringToPreview...")
     cnv = oo_to_html()
     return self._convertOutput(cnv.convert_(content,), "html")
コード例 #2
0
 def convertStringToIndex(self, content, content_type, instance):
     """
     convertStringToIndex(self, content, content_type, instance) => Utility to convert a string to HTML
     using the converter stuff.
     """
     LOG.debug("convertStringToIndex...")
     cnv = oo_to_html()
     return self._html_to_text(cnv.convert_(content,), )