diff --git a/pylons_app/templates/admin.html b/pylons_app/templates/admin.html --- a/pylons_app/templates/admin.html +++ b/pylons_app/templates/admin.html @@ -1,13 +1,15 @@ ## -*- coding: utf-8 -*- <%inherit file="base/base.html"/> <%def name="get_form_error(element)"> - %if type(c.form_errors) == dict: - %if c.form_errors.get(element,False): - - ${c.form_errors.get(element,'')} - - %endif - %endif + %if hasattr(c,'form_errors'): + %if type(c.form_errors) == dict: + %if c.form_errors.get(element,False): + + ${c.form_errors.get(element,'')} + + %endif + %endif + %endif <%def name="title()"> ${_('Repository managment')}