1.1 --- a/imiptools/handlers/__init__.py Sun Nov 01 18:59:15 2015 +0100
1.2 +++ b/imiptools/handlers/__init__.py Sun Nov 01 23:58:21 2015 +0100
1.3 @@ -21,7 +21,7 @@
1.4
1.5 from email.mime.text import MIMEText
1.6 from imiptools.client import ClientForObject
1.7 -from imiptools.config import MANAGER_PATH, MANAGER_URL
1.8 +from imiptools.config import MANAGER_PATH, MANAGER_URL, MANAGER_URL_SCHEME
1.9 from imiptools.data import get_address, get_uri, get_sender_identities, \
1.10 uri_dict, uri_item
1.11 from socket import gethostname
1.12 @@ -29,7 +29,8 @@
1.13 # References to the Web interface.
1.14
1.15 def get_manager_url():
1.16 - url_base = MANAGER_URL or "http://%s/" % gethostname()
1.17 + url_base = MANAGER_URL or \
1.18 + "%s%s/" % (MANAGER_URL_SCHEME or "https://", gethostname())
1.19 return "%s/%s" % (url_base.rstrip("/"), MANAGER_PATH.lstrip("/"))
1.20
1.21 def get_object_url(uid, recurrenceid=None):