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 6e9e2876
authored
Mar 17, 2026
by
aa.gustiana@gmail.com
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
perbaikan remove htmltag
1 parent
50201679
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletions
opensipkd/base/scripts/data/users_groups.csv
opensipkd/base/views/base_views.py
opensipkd/base/scripts/data/users_groups.csv
View file @
6e9e287
user_id/users.user_name,group_id/groups.group_name
admin,admin
\ No newline at end of file
opensipkd/base/views/base_views.py
View file @
6e9e287
...
...
@@ -3,6 +3,7 @@ from cgi import FieldStorage
import
os
from
datetime
import
datetime
from
email.utils
import
parseaddr
import
lxml
from
webob.multidict
import
MultiDict
import
colander
...
...
@@ -147,6 +148,8 @@ class BaseView(object):
if
self
.
allow_check
and
self
.
allow_delete
:
self
.
list_buttons
.
append
(
btn_delete
)
self
.
html_tag_cleaner
=
True
def
init_session
(
self
,
request
):
# # if not request.user:
# if "g_state" in request.cookies:
...
...
@@ -995,6 +998,11 @@ class BaseView(object):
if
k
not
in
values
:
if
v
:
values
[
k
]
=
v
for
k
,
v
in
values
.
items
():
if
v
and
self
.
html_tag_cleaner
and
isinstance
(
v
,
str
)
and
v
!=
""
:
values
[
k
]
=
lxml
.
html
.
fromstring
(
v
)
.
text_content
()
log
.
debug
(
f
"Base save_request: {values}"
)
return
self
.
save
(
values
,
self
.
req
.
user
,
row
)
...
...
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