

@cherrypy.expose
def alter(self, *paths, **_ignored):
    email_name = '/'.join(paths)
    email_path = os.path.join(self.settings.source, email_name)
    (template, placeholders, _) = reader_read(email_path)
    args = _unplaceholder(placeholders)
    document = _extract_document(args, email_name=email_name, template_name=template.name, template_styles=template.styles)
    return self.edit_renderer.render_editor(document.template_name, document.styles, actions=self._actions(document, **{
        EMAIL_PARAM_NAME: email_name,
    }), **document.args)

dataset/ETHPy150Open KeepSafe/ks-email-parser/email_parser/gui/gui.py Server.alter/original