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 00074b72
authored
Sep 26, 2024
by
aa.gusti
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'latest' of
https://git.opensipkd.com/aa.gusti/opensipkd-base
into latest
2 parents
659c6d4a
2ad8c1f5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
opensipkd/base/views/user_area.py
opensipkd/base/views/user_area.py
View file @
00074b7
...
@@ -29,7 +29,7 @@ class AddSchema(colander.Schema):
...
@@ -29,7 +29,7 @@ class AddSchema(colander.Schema):
colander
.
Integer
(),
colander
.
Integer
(),
widget
=
widget
.
SelectWidget
(
values
=
User
.
get_list
()),
widget
=
widget
.
SelectWidget
(
values
=
User
.
get_list
()),
oid
=
"user_id"
,
oid
=
"user_id"
,
title
=
"
Kab/Kota
"
,
title
=
"
User
"
,
)
)
desa_id
=
colander
.
SchemaNode
(
desa_id
=
colander
.
SchemaNode
(
colander
.
Integer
(),
colander
.
Integer
(),
...
@@ -57,7 +57,7 @@ class Views(BaseView):
...
@@ -57,7 +57,7 @@ class Views(BaseView):
return
query
.
outerjoin
(
ResDesa
,
ResDesa
.
id
==
self
.
table
.
desa_id
)
\
return
query
.
outerjoin
(
ResDesa
,
ResDesa
.
id
==
self
.
table
.
desa_id
)
\
.
outerjoin
(
User
,
User
.
id
==
self
.
table
.
user_id
)
.
outerjoin
(
User
,
User
.
id
==
self
.
table
.
user_id
)
@view_config
(
route_name
=
'user-area'
,
renderer
=
'templates/
form
.pt'
,
@view_config
(
route_name
=
'user-area'
,
renderer
=
'templates/
table
.pt'
,
permission
=
'user-view'
)
permission
=
'user-view'
)
def
view_list
(
self
,
**
kwargs
):
def
view_list
(
self
,
**
kwargs
):
return
super
()
.
view_list
(
**
kwargs
)
return
super
()
.
view_list
(
**
kwargs
)
...
...
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