Commit 39e0c731 by aagusti

perbaikan report

1 parent 0662bfec
...@@ -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, get_params from ..tools import get_settings, get_params
...@@ -51,7 +51,9 @@ def open_rml_pdf(tpl_filename, **kwargs): ...@@ -51,7 +51,9 @@ def open_rml_pdf(tpl_filename, **kwargs):
params[key] = value params[key] = value
rml = rml.format(waktu=waktu(), rml = rml.format(waktu=waktu(),
logo=logo, logo=logo,
line=line, **kwargs) line=line, **kwargs
)
from z3c.rml import rml2pdf
pdf = rml2pdf.parseString(rml) pdf = rml2pdf.parseString(rml)
return pdf, pdf_filename return pdf, pdf_filename
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!