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
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
20 additions
and
6 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::
...
@@ -16,12 +16,12 @@ Buat Python Virtual Environment, biasanya pada home directory::
Install Production
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::
Install Development::
-------------------
-------------------
$ mkdir apps
$ mkdir apps
$ cd 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
$ 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")
...
@@ -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_save
=
Button
(
'save'
,
title
=
'Simpan'
,
css_class
=
"btn-primary"
)
btn_force
=
Button
(
'force'
,
title
=
'Paksa'
,
css_class
=
"btn-info"
)
btn_force
=
Button
(
'force'
,
title
=
'Paksa'
,
css_class
=
"btn-info"
)
btn_upload
=
Button
(
'upload'
,
title
=
'Upload'
,
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_cancel
=
Button
(
'cancel'
,
title
=
'Batal'
,
css_class
=
"btn-warning"
)
btn_reset
=
Button
(
'reset'
,
title
=
'Reset'
,
css_class
=
"btn-warning"
,
type
=
"reset"
)
btn_reset
=
Button
(
'reset'
,
title
=
'Reset'
,
css_class
=
"btn-warning"
,
type
=
"reset"
)
btn_close
=
Button
(
'close'
,
title
=
'Tutup'
,
css_class
=
"btn-danger"
)
btn_close
=
Button
(
'close'
,
title
=
'Tutup'
,
css_class
=
"btn-danger"
)
...
...
opensipkd/tools/report.py
View file @
adfef56
...
@@ -4,7 +4,7 @@ import ntpath
...
@@ -4,7 +4,7 @@ import ntpath
import
csv
import
csv
import
io
import
io
from
datetime
import
datetime
from
datetime
import
datetime
from
z3c.rml
import
rml2pdf
#
from z3c.rml import rml2pdf
import
subprocess
import
subprocess
import
logging
import
logging
from
..tools
import
get_settings
from
..tools
import
get_settings
...
@@ -37,6 +37,8 @@ def open_rml_row(row_tpl_filename):
...
@@ -37,6 +37,8 @@ def open_rml_row(row_tpl_filename):
def
open_rml_pdf
(
tpl_filename
,
**
kwargs
):
def
open_rml_pdf
(
tpl_filename
,
**
kwargs
):
# out_filename = 'out_filename' in kwargs and kwargs['out_filename'] or tpl_filename
# out_filename = 'out_filename' in kwargs and kwargs['out_filename'] or tpl_filename
# log.warning("Not Supported")
# return
pdf_filename
=
tpl_filename
+
'.pdf'
pdf_filename
=
tpl_filename
+
'.pdf'
f
=
open
(
rpt_path
+
tpl_filename
)
f
=
open
(
rpt_path
+
tpl_filename
)
...
...
requirements.txt
View file @
adfef56
...
@@ -10,5 +10,3 @@ plaster>=1.0
...
@@ -10,5 +10,3 @@ plaster>=1.0
hupper>=1.10.3
hupper>=1.10.3
urllib3>=1.26.6
urllib3>=1.26.6
idna>=3.2
idna>=3.2
\ No newline at end of file
\ No newline at end of file
pikepdf
z3c.rml
setup.py
View file @
adfef56
...
@@ -10,6 +10,20 @@ with open(os.path.join(here, 'CHANGES.txt')) as f:
...
@@ -10,6 +10,20 @@ with open(os.path.join(here, 'CHANGES.txt')) as f:
line
=
CHANGES
.
splitlines
()[
0
]
line
=
CHANGES
.
splitlines
()[
0
]
version
=
line
.
split
()[
0
]
version
=
line
.
split
()[
0
]
requires
=
[
requires
=
[
"setuptools"
,
"pip"
,
"WebOb"
,
"certifi"
,
"pyramid"
,
"pyramid_rpc"
,
"venusian"
,
"translationstring"
,
"plaster"
,
"hupper"
,
"urllib3"
,
"idna"
,
# "pikepdf",
# "z3c.rml",
]
]
dev_requires
=
[
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