Closed ghost closed 5 years ago
Hi Thank you for notifying me of this issue. I'll give it a look once I have time.
Hi Thank you for notifying me of this issue. I'll give it a look once I have time.
So this isn't really a solution but more of a workaround. Since --template
is only used for creating a .docx, it doesn't make sense for the export_to_csv
& export_to_excel
functions to even care about the --template
argument. So I just removed lines 85-86:
if template is not None:
raise NotImplementedError("Use of template is not supported in XSLX-output.")
& 657-658:
if template is not None:
raise NotImplementedError("Use of template is not supported in CSV-output.")
from export.py
and it works fine. I say this is a workaround because using templates for those outputs as a future implementation would be cool.
Thanks for keeping up development of these tools. I use OpenVAS a lot and its reporting capabilities are the worst, so these sorts of things are very valuable to me.
Could you give me some more info about your situation?
This error is thrown when someone uses the --template
parameter while exporting to xlsx or csv.
Since this functionality is (currently) unsupported, the error is raised.
You could indeed claim that passing the --template
when unsupported should just be ignored.
Will continue this in #2
Using
--format xlsx
returns this error:Not sure how to fix this one. Maybe a separate
convert_docx
function if you want docx format?