0003-misc-remove-leftover-error-display-code-23975.patch
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 |
- |