Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
irul
/
opensipkd-base
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 82d99d70
authored
Mar 06, 2023
by
aagusti
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
base
1 parent
de879328
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
opensipkd/base/__init__.py
opensipkd/base/views/base_views.py
opensipkd/base/__init__.py
View file @
82d99d7
...
@@ -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
)
...
...
opensipkd/base/views/base_views.py
View file @
82d99d7
...
@@ -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
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment