From 46a0d475a94545f06d3fd60e71a190baf22f2e8b Mon Sep 17 00:00:00 2001 From: Charles Oliveira <18oliveira.charles@gmail.com> Date: Mon, 27 Jul 2015 15:26:38 -0400 Subject: [PATCH] Added MAILMANAPI_URL ending slash to settings --- colab/accounts/utils/mailman.py | 2 +- colab/settings.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/colab/accounts/utils/mailman.py b/colab/accounts/utils/mailman.py index 708e846..879cd82 100644 --- a/colab/accounts/utils/mailman.py +++ b/colab/accounts/utils/mailman.py @@ -13,7 +13,7 @@ LOGGER = logging.getLogger('colab.mailman') def get_url(listname=None): if listname: - return urlparse.urljoin(settings.MAILMAN_API_URL, '/' + listname) + return urlparse.urljoin(settings.MAILMAN_API_URL, listname) return settings.MAILMAN_API_URL diff --git a/colab/settings.py b/colab/settings.py index 57c2aed..d1a4256 100644 --- a/colab/settings.py +++ b/colab/settings.py @@ -233,7 +233,7 @@ SUPER_ARCHIVES_EXCLUDE = [] SUPER_ARCHIVES_LOCK_FILE = '/var/lock/colab/import_emails.lock' # Mailman API settings -MAILMAN_API_URL = 'http://localhost:8124' +MAILMAN_API_URL = 'http://localhost:8124/v2/' LOGIN_URL = '/user/login' LOGIN_REDIRECT_URL = '/' -- libgit2 0.21.2