def sphinx_rest_to_html(rest, static_path=util.DEFAULT_STATIC_PATH): return util.sphinx_rest_to_html(rest, static_path)
def sphinx_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(sphinx_rest_to_html(rest)[0]) f.close()