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 50201679
authored
Mar 06, 2026
by
aa.gustiana@gmail.com
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
perbaikan users
1 parent
0e9be687
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
5 deletions
opensipkd/base/models/users.py
opensipkd/base/tools/report.py
opensipkd/base/views/base_views.py
opensipkd/base/models/users.py
View file @
5020167
...
...
@@ -93,6 +93,7 @@ class UserResourcePermission(_UserResourcePermission, Base):
class
_User
(
UserMixin
,
BaseModel
):
db_session
=
DBSession
last_login_date
=
Column
(
DateTime
(
timezone
=
True
),
nullable
=
True
)
registered_date
=
Column
(
DateTime
(
timezone
=
True
),
nullable
=
False
,
...
...
@@ -118,7 +119,7 @@ class _User(UserMixin, BaseModel):
password
=
property
(
_get_password
,
_set_password
)
def
get_groups
(
self
):
return
UserG
roup
.
get_by_user
(
self
)
return
self
.
user_g
roup
.
get_by_user
(
self
)
def
last_login_date_tz
(
self
):
return
as_timezone
(
self
.
last_login_date
)
...
...
@@ -233,6 +234,7 @@ class _ExternalIdentity(ExternalIdentityMixin):
# ,
# overlaps = "external_identities,owner"
db_session
=
DBSession
@classmethod
def
query
(
cls
):
...
...
opensipkd/base/tools/report.py
View file @
5020167
...
...
@@ -39,7 +39,7 @@ def jasper_db_conn(db_schema=None, dburl="sqlalchemy.url"):
jdbc_dir
=
get_params
(
"jdbc_dir"
,
""
)
jdbc_driver
=
db_driver_port
[
db_driver
][
2
]
db_driver
=
db_driver_port
[
db_driver
][
0
]
log
.
debug
(
jdbc_dir
)
log
.
debug
(
'JDBCDir:
%
s'
,
jdbc_dir
)
return
{
'driver'
:
db_driver
,
'username'
:
db_user
.
strip
(
'/'
),
...
...
opensipkd/base/views/base_views.py
View file @
5020167
...
...
@@ -1007,9 +1007,6 @@ class BaseView(object):
def
get_values
(
self
,
row
,
istime
=
False
,
null
=
False
):
d
=
dict
(
row
.
__dict__
)
d
.
pop
(
'_sa_instance_state'
,
None
)
# d = row.to_dict(null=null)
# if 'tanggal' in d and d['tanggal']:
# d["tanggal"] = dmy(row.tanggal)
values
=
{}
for
f
in
d
:
if
type
(
d
[
f
])
is
str
:
...
...
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