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 c95c5953
authored
Feb 09, 2026
by
aa.gustiana@gmail.com
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat: Enhance error logging for form validation in BaseView during add operations
1 parent
89b922f3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
opensipkd/base/views/base_views.py
opensipkd/base/views/base_views.py
View file @
c95c595
...
...
@@ -890,7 +890,9 @@ class BaseView(object):
try
:
c
=
form
.
validate
(
controls
)
except
ValidationFailure
as
e
:
log
.
error
(
f
"Edit Error: {str(e.error)}"
)
log
.
error
(
f
"Add Error: {e.field}"
)
log
.
error
(
f
"Add Error: {e.cstruct}"
)
log
.
error
(
f
"Add Error: {str(e.error)}"
)
value
=
self
.
before_add
()
if
self
.
req
.
is_xhr
:
error
=
e
.
error
.
asdict
()
...
...
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