Skip to content

Commit

Permalink
another fix for the issue with the windows path names
Browse files Browse the repository at this point in the history
  • Loading branch information
scaphilo committed Jan 28, 2018
1 parent 6a74e1f commit 850b839
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions koalixcrm/crm/documents/pdfexport.py
Expand Up @@ -104,9 +104,9 @@ def create_pdf(object_to_create_pdf):
# define the files which are involved in pdf creation process
fop_config_file = object_to_create_pdf.get_fop_config_file()
xsl_file = object_to_create_pdf.get_xsl_file()
file_with_serialized_xml = os.path.join(settings.PDF_OUTPUT_ROOT, (str(type(object_to_create_pdf)) +
file_with_serialized_xml = os.path.join(settings.PDF_OUTPUT_ROOT, (str(type(object_to_create_pdf).__name__) +
"_" + str(object_to_create_pdf.id) + ".xml"))
file_output_pdf = os.path.join(settings.PDF_OUTPUT_ROOT, (str(type(object_to_create_pdf)) +
file_output_pdf = os.path.join(settings.PDF_OUTPUT_ROOT, (str(type(object_to_create_pdf).__name__) +
"_" + str(object_to_create_pdf.id) + ".pdf"))

# list the sub-objects which to be serialized
Expand Down

0 comments on commit 850b839

Please sign in to comment.