

def render_editor(self, template_name, styles=(), actions={
    
}, **args):
    replacer = InlineFormReplacer.make(self.settings, args, template_name)
    edit_html = replacer.html
    edit_column = _get_body_content_string(edit_html).strip()
    image_attrs = self._find_image_attrs(edit_html)
    image_filenames = self._find_images()
    print(image_attrs)
    print(image_filenames)
    print(self._verified_images)
    return self.gui_template('editor.html.jinja2', view_url=actions.get('preview_fragment'), title='Editing {}'.format(template_name), subject=args.get('subject', ''), content=edit_column, all_styles=self._find_styles(), styles=styles, save_url=actions.get('save'), attrs=replacer.attrs, values=args, dropdowns={A: image_filenames for A in image_attrs}, verified_dropdowns={A: self._verified_images for A in image_attrs})

dataset/ETHPy150Open KeepSafe/ks-email-parser/email_parser/gui/gui.py InlineFormRenderer.render_editor/original