diff --git a/binder/bcommon/models.py b/binder/bcommon/models.py index 7ca8aed..5d92a56 100644 --- a/binder/bcommon/models.py +++ b/binder/bcommon/models.py @@ -6,7 +6,6 @@ import urllib2 from BeautifulSoup import BeautifulStoneSoup as BS import re - TSIG_ALGORITHMS = (('hmac-md5', 'MD5'),('hmac-sha1', 'SHA1'),('hmac-224', 'SHA224'),('hmac-sha256', 'SHA256'),('hmac-sha384', 'SHA384'),('hmac-sha512', 'SHA512')) class BindServer(models.Model): @@ -25,7 +24,7 @@ class BindServer(models.Model): try: http_request = urllib2.urlopen(myreq) except urllib2.URLError, err_reason: # Error retrieving zone list. - return { 'errors' : err_reason, 'error_context' : "Trying to retrieve zone list from %s" % dns_hostname } + return { 'errors' : err_reason, 'error_context' : "Trying to retrieve zone list from %s" % self.hostname } return_array = [] xmloutput = http_request.read() diff --git a/binder/templates/base.htm b/binder/templates/base.htm index 8b54e7d..4e1e66b 100644 --- a/binder/templates/base.htm +++ b/binder/templates/base.htm @@ -15,8 +15,8 @@ {% endblock pageheader %}
-{% if errors %} {% block errors %} +{% if errors %}