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 c73f8e66
authored
Mar 12, 2025
by
Ari Agung Prasetiyo
Committed by
Ari Agung Prasetiyo
Mar 12, 2025
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
perbaikan view_upload
1 parent
1629d3c5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
opensipkd/base/views/base_views.py
opensipkd/base/views/base_views.py
View file @
c73f8e6
...
...
@@ -654,7 +654,7 @@ class BaseView(object):
return
self
.
view_view
(
buttons
=
buttons
)
def
view_upload
(
self
,
**
kw
):
return
self
.
view_import
(
self
,
**
kw
)
return
self
.
view_import
(
**
kw
)
# exts = kw.get("exts")
# table = None
# if not exts:
...
...
@@ -767,7 +767,11 @@ class BaseView(object):
def
get_file
(
self
,
filename
):
return
open
(
filename
)
def
save_upload
(
self
,
file_name
,
**
args
):
return
append_csv
(
self
.
table
,
file_name
,
self
.
upload_keys
,
get_file_func
=
self
.
get_file
,
update_exist
=
True
,
**
args
)
def
before_add
(
self
):
return
{}
...
...
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