Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
aa.gusti
/
opensipkd-tools
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 adfef56b
authored
Sep 23, 2021
by
aa.gusti
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
penambahan buttons
1 parent
00991536
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
21 additions
and
7 deletions
README.rst
opensipkd/tools/buttons.py
opensipkd/tools/report.py
requirements.txt
setup.py
README.rst
View file @
adfef56
...
...
@@ -16,12 +16,12 @@ Buat Python Virtual Environment, biasanya pada home directory::
Install Production
------------------
$ ~/env/bin/pip install git+https://git.opensipkd.com/aa.gusti/tools.git
$ ~/env/bin/pip install git+https://git.opensipkd.com/aa.gusti/
opensipkd-
tools.git
Install Development::
-------------------
$ mkdir apps
$ cd apps
$ git clone https://git.opensipkd.com/aa.gusti/tools.git
$ git clone https://git.opensipkd.com/aa.gusti/
opensipkd-
tools.git
$ env/bin/pip install -e tools
opensipkd/tools/buttons.py
View file @
adfef56
...
...
@@ -7,7 +7,7 @@ btn_delete = Button('delete', title='Hapus', css_class="btn-danger")
btn_save
=
Button
(
'save'
,
title
=
'Simpan'
,
css_class
=
"btn-primary"
)
btn_force
=
Button
(
'force'
,
title
=
'Paksa'
,
css_class
=
"btn-info"
)
btn_upload
=
Button
(
'upload'
,
title
=
'Upload'
,
css_class
=
"btn-info"
)
btn_filter
=
Button
(
'filter'
,
title
=
'Filter'
,
css_class
=
"btn-info"
)
btn_cancel
=
Button
(
'cancel'
,
title
=
'Batal'
,
css_class
=
"btn-warning"
)
btn_reset
=
Button
(
'reset'
,
title
=
'Reset'
,
css_class
=
"btn-warning"
,
type
=
"reset"
)
btn_close
=
Button
(
'close'
,
title
=
'Tutup'
,
css_class
=
"btn-danger"
)
...
...
opensipkd/tools/report.py
View file @
adfef56
...
...
@@ -4,7 +4,7 @@ import ntpath
import
csv
import
io
from
datetime
import
datetime
from
z3c.rml
import
rml2pdf
#
from z3c.rml import rml2pdf
import
subprocess
import
logging
from
..tools
import
get_settings
...
...
@@ -37,6 +37,8 @@ def open_rml_row(row_tpl_filename):
def
open_rml_pdf
(
tpl_filename
,
**
kwargs
):
# out_filename = 'out_filename' in kwargs and kwargs['out_filename'] or tpl_filename
# log.warning("Not Supported")
# return
pdf_filename
=
tpl_filename
+
'.pdf'
f
=
open
(
rpt_path
+
tpl_filename
)
...
...
requirements.txt
View file @
adfef56
...
...
@@ -9,6 +9,4 @@ translationstring>=1.4
plaster>=1.0
hupper>=1.10.3
urllib3>=1.26.6
idna>=3.2
pikepdf
z3c.rml
idna>=3.2
\ No newline at end of file
setup.py
View file @
adfef56
...
...
@@ -10,6 +10,20 @@ with open(os.path.join(here, 'CHANGES.txt')) as f:
line
=
CHANGES
.
splitlines
()[
0
]
version
=
line
.
split
()[
0
]
requires
=
[
"setuptools"
,
"pip"
,
"WebOb"
,
"certifi"
,
"pyramid"
,
"pyramid_rpc"
,
"venusian"
,
"translationstring"
,
"plaster"
,
"hupper"
,
"urllib3"
,
"idna"
,
# "pikepdf",
# "z3c.rml",
]
dev_requires
=
[
...
...
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