Projet

Général

Profil

0003-misc-remove-leftover-error-display-code-23975.patch

Frédéric Péters, 22 mai 2018 09:08

Télécharger (1,09 ko)

Voir les différences:

Subject: [PATCH 3/3] misc: remove leftover error display code (#23975)

This was only used in signature mode, that got removed in #4744.
 wcs/forms/root.py | 8 --------
 1 file changed, 8 deletions(-)
wcs/forms/root.py
1105 1105
                list(self.get_formdef_template_variants(self.validation_templates)),
1106 1106
                context)
1107 1107

  
1108
    def error(self, msg):
1109
        self.html_top(self.formdef.name)
1110
        homepage = get_publisher().get_root_url()
1111
        r = TemplateIO(html=True)
1112
        r += htmltext('<div class="errornotice">%s</div>') % msg
1113
        r += htmltext('<a href="%s">%s</a>') % (homepage, _('Back Home'))
1114
        return r.getvalue()
1115

  
1116 1108
    def tryauth(self):
1117 1109
        return tryauth(self.formdef.get_url())
1118 1110

  
1119
-