Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
aa.gusti
/
opensipkd-base
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 5b5faf22
authored
Apr 10, 2026
by
aa.gustiana@gmail.com
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
update headers
1 parent
d96b5bf8
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
5 deletions
opensipkd/base/static/v3/css/osipkd.css
opensipkd/base/views/api_base.py
opensipkd/base/views/base_views.py
opensipkd/base/views/user_login.py
opensipkd/base/static/v3/css/osipkd.css
View file @
5b5faf2
...
@@ -247,7 +247,10 @@ button {
...
@@ -247,7 +247,10 @@ button {
}
}
.panel
{
.panel
{
border
:
1px
solid
#ddd
!important
border
:
1px
solid
#ddd
!important
;
margin-left
:
10px
;
margin-right
:
10px
;
}
}
.panel-danger
{
.panel-danger
{
...
...
opensipkd/base/views/api_base.py
View file @
5b5faf2
...
@@ -2,8 +2,6 @@ from datetime import datetime, date
...
@@ -2,8 +2,6 @@ from datetime import datetime, date
import
logging
import
logging
import
colander
import
colander
from
decimal
import
Decimal
from
decimal
import
Decimal
from
math
import
e
,
exp
,
log
from
pyramid.response
import
Response
from
pyramid.response
import
Response
from
pyramid.response
import
Response
from
pyramid.httpexceptions
import
*
from
pyramid.httpexceptions
import
*
import
colander
import
colander
...
...
opensipkd/base/views/base_views.py
View file @
5b5faf2
...
@@ -979,8 +979,10 @@ class BaseView(object):
...
@@ -979,8 +979,10 @@ class BaseView(object):
if
not
row
:
if
not
row
:
row
=
self
.
table
()
row
=
self
.
table
()
row
.
created
=
datetime
.
now
()
if
hasattr
(
row
,
"created"
):
row
.
create_uid
=
user
and
user
.
id
or
None
row
.
created
=
datetime
.
now
()
if
hasattr
(
row
,
"create_uid"
)
and
user
:
row
.
create_uid
=
user
.
id
else
:
else
:
row
.
updated
=
datetime
.
now
()
row
.
updated
=
datetime
.
now
()
row
.
update_uid
=
user
and
user
.
id
or
None
row
.
update_uid
=
user
and
user
.
id
or
None
...
...
opensipkd/base/views/user_login.py
View file @
5b5faf2
...
@@ -343,6 +343,11 @@ class ViewAuth(BaseView):
...
@@ -343,6 +343,11 @@ class ViewAuth(BaseView):
next_url
=
f
"{request.route_url('base-login')}?next={next_url}"
next_url
=
f
"{request.route_url('base-login')}?next={next_url}"
return
HTTPFound
(
location
=
next_url
)
return
HTTPFound
(
location
=
next_url
)
# elif self.req.is_xhr:
# user = login.user
# headers = get_login_headers(request, user)
# return xhr_response(user, headers)
return
redirect_login
(
request
,
user
)
return
redirect_login
(
request
,
user
)
elif
'register'
in
request
.
POST
:
elif
'register'
in
request
.
POST
:
...
...
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