def docutils_rest_to_html(rest): return util.docutils_rest_to_html(rest)
def docutils_rst2html(self, info): rest = info.object.selected_view.model.rest html_filepath = info.object.selected_view.model.html_filepath f = open(html_filepath, 'w') f.write(docutils_rest_to_html(rest)[0]) f.close()