# HG changeset patch # User Marcin Kuzminski # Date 2010-04-25 22:46:28 # Node ID 68e5749058601fec747abd6ad2b1de33f170119d # Parent 5e2470ebdbc6b98d3502b9ce45976a761887e8b8 admin fix 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')}