Commit 82d99d70 by aagusti

base

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