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 f0a77749
authored
Mar 07, 2024
by
aagusti
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
perbaikan get_list base
1 parent
452ce94c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
17 deletions
opensipkd/base/views/base_views.py
opensipkd/base/views/base_views.py
View file @
f0a7774
...
@@ -417,23 +417,23 @@ class BaseView(object):
...
@@ -417,23 +417,23 @@ class BaseView(object):
global_search
=
global_search
))
global_search
=
global_search
))
if
hasattr
(
d
,
"url"
):
if
hasattr
(
d
,
"url"
):
url
.
append
(
d
.
name
)
url
.
append
(
d
.
name
)
else
:
else
:
columns
=
self
.
columns
columns
=
self
.
columns
query
=
self
.
db_session
.
query
()
.
select_from
(
self
.
table
)
query
=
self
.
db_session
.
query
()
.
select_from
(
self
.
table
)
query
=
self
.
list_join
(
query
)
query
=
self
.
list_join
(
query
)
if
self
.
req
.
user
and
self
.
req
.
user
.
company_id
and
hasattr
(
if
self
.
req
.
user
and
self
.
req
.
user
.
company_id
and
hasattr
(
self
.
table
,
"company_id"
):
self
.
table
,
"company_id"
):
query
=
query
.
filter
(
query
=
query
.
filter
(
self
.
table
.
company_id
==
self
.
req
.
user
.
company_id
)
self
.
table
.
company_id
==
self
.
req
.
user
.
company_id
)
query
=
self
.
list_filter
(
query
)
query
=
self
.
list_filter
(
query
)
row_table
=
DataTables
(
self
.
req
.
GET
,
query
,
columns
)
row_table
=
DataTables
(
self
.
req
.
GET
,
query
,
columns
)
result
=
row_table
.
output_result
()
result
=
row_table
.
output_result
()
# for k, v in d.items():
# for k, v in d.items():
# if k in url and v:
# if k in url and v:
# link = "/".join([self.home, nik_url, v])
# link = "/".join([self.home, nik_url, v])
# d[k] =f'<a href="{link}" target="_blank">View</a>'
# d[k] =f'<a href="{link}" target="_blank">View</a>'
return
result
return
result
def
view_act
(
self
,
**
kwargs
):
def
view_act
(
self
,
**
kwargs
):
url_dict
=
self
.
req
.
matchdict
url_dict
=
self
.
req
.
matchdict
...
...
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