Commit 82d99d70 by aagusti

base

1 parent de879328
...@@ -387,9 +387,10 @@ def get_urls(url): ...@@ -387,9 +387,10 @@ def get_urls(url):
urls = url.split(":") urls = url.split(":")
homes = home.split(":") homes = home.split(":")
if urls[0] != homes[0]: if urls[0] != homes[0]:
return ":".join([homes[0], urls[1:]]) return ":".join([homes[0], ":".join(urls[1:])])
return url return url
def get_host(request): def get_host(request):
host = get_params('_host', "") host = get_params('_host', "")
return host and host or get_home(request) return host and host or get_home(request)
......
...@@ -12,7 +12,6 @@ from pyramid.httpexceptions import HTTPFound ...@@ -12,7 +12,6 @@ from pyramid.httpexceptions import HTTPFound
from .common import DataTables from .common import DataTables
from .. import DBSession, get_params, get_urls from .. import DBSession, get_params, get_urls
from
from opensipkd.tools import dmy, date_from_str, get_settings, get_ext, \ from opensipkd.tools import dmy, date_from_str, get_settings, get_ext, \
date_from_str date_from_str
import colander import colander
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!