diff --git a/context_processors.py b/context_processors.py index 1ee234c..c8f63ac 100644 --- a/context_processors.py +++ b/context_processors.py @@ -1,5 +1,5 @@ from mailman.client import Client -from settings import API_USER, API_PASS, MAILMAN_THEME +from mailmanweb.settings import API_USER, API_PASS, MAILMAN_THEME from django.utils.translation import gettext as _ from urllib2 import HTTPError @@ -12,23 +12,23 @@ message = "" if "HTTP_HOST" in request.META.keys() :#TODO only lists of current domains if possible #get the URL - web_host = request.META["HTTP_HOST"].split(":")[0] + web_host = ('http://%s' % request.META["HTTP_HOST"].split(":")[0]) domainname = "unregistered Domain" #querry the Domain object try: c = Client('http://localhost:8001/3.0', API_USER, API_PASS) - try: - d = c.get_domain(None,web_host) - #workaround LP:802971 - only lists of the current domain #todo a8 - domainname= d.email_host - for list in c.lists: - if list.host_name == domainname: - domain_lists.append(list) - except HTTPError, e: - domain_lists = c.lists - message = str(e.code) + _(" - Accesing from an unregistered Domain - showing all lists") except AttributeError, e: message="REST API not found / Offline" + try: + d = c.get_domain(web_host=web_host) + #workaround LP:802971 - only lists of the current domain #todo a8 + domainname= d.mail_host + for list in c.lists: + if list.mail_host == domainname: + domain_lists.append(list) + except HTTPError, e: + domain_lists = c.lists + message = str(e.code) + _(" - Accesing from an unregistered Domain - showing all lists") #return a Dict with the key used in templates return {"lists":domain_lists,"domain":domainname, "message":message} diff --git a/forms.py b/forms.py index 006b707..1c74727 100644 --- a/forms.py +++ b/forms.py @@ -749,7 +749,7 @@ ) #Descriptions used in the Settings Overview Page section_descriptions = { - "List Indentity":_("General List settings use"), + "List Identity":_("General List settings use"), "Automatic Responses":_("All options for Autoreply"), "Content Filtering":_("Decide how incoming mails might be filtered"), "Digest": _("Modify and check some Digest options"), @@ -802,7 +802,7 @@ """ # just a really temporary layout to see that it works. -- Anna layout = [ - ["List Indentity", "real_name", "include_list_post_header", + ["List Identity", "real_name", "include_list_post_header", "include_rfc2369_headers"], #"info", "list_name", "host_name", "list_id", "fqdn_listname", #"http_etag", "volume", "web_host" diff --git a/media/mailman_django/default/css/forms.css b/media/mailman_django/default/css/forms.css index bfc5fe9..a673edf 100644 --- a/media/mailman_django/default/css/forms.css +++ b/media/mailman_django/default/css/forms.css @@ -21,6 +21,11 @@ float:none; } +input[type="submit"], +input.button { + width: auto; + margin-right: 10px; +} .errorlist { float: right; width: 300px; diff --git a/media/mailman_django/default/css/style.css b/media/mailman_django/default/css/style.css index c3c0118..418bebf 100755 --- a/media/mailman_django/default/css/style.css +++ b/media/mailman_django/default/css/style.css @@ -120,7 +120,7 @@ } .mm_actionButtons a, .mm_actionButtons a:hover { - padding-left: 40px; + padding-left: 10px; text-decoration: none; font-weight: bold; color: #444; @@ -150,6 +150,7 @@ padding: 5px 10px; margin-left: -10px; margin-right: -10px; + margin-bottom: 10px; border-bottom: 1px solid #E4E5E2; } diff --git a/templates/mailman-django/base.html b/templates/mailman-django/base.html index a79e83d..b788a6c 100644 --- a/templates/mailman-django/base.html +++ b/templates/mailman-django/base.html @@ -13,8 +13,7 @@ - - +
@@ -46,11 +45,14 @@ diff --git a/templates/mailman-django/domain_index.html b/templates/mailman-django/domain_index.html index 15e1a61..87b9080 100644 --- a/templates/mailman-django/domain_index.html +++ b/templates/mailman-django/domain_index.html @@ -8,7 +8,7 @@ {% block header %}{% trans "This page visualizes all list settings. This gives an idea of what the settings page could look like." %}
-