-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
provide an XML2PDF print service proxy #631
Conversation
with the fix #628 and this changes I was able to generate a PDF
I'am in contact with GISDATEN AG to find a solution on that. |
|
…ttps://github.com/openoereb/pyramid_oereb into necessary_changes_for_xml2pdf_print
…nto necessary_changes_for_xml2pdf_print
…ttps://github.com/openoereb/pyramid_oereb into necessary_changes_for_xml2pdf_print
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vvmruder we have tested your code with @pramisters in the Canton Zug installation, and it was working fine - without needing to change the XML templates. We only needed to add your proxy code. Perhaps the xml2pdf service has been adapted in the meantime.
There is an additional issue about missing geometry data, but I am working on a separate PR for that. In my opinion, if we rework your PR such that it only adds the code (without changing the XML templates), we can merge it into master.
@jwkaltz This sounds good. I planned to work on that today. So I will rework it and push again. Than it can be merged. |
@jwkaltz It was coming into my mind that we had an issue with encoded URL's in XML. Is this solved too? |
@jwkaltz About the codacy-bot issues: I don't know how to solve this, because the import statements are there for inter python version compatibility. Its correct that one of the import statements will not be used... Can you contribute on that? |
It seems so, yes. Since we used your code without changes, but did not change the XML templates, I am assuming XML2PDF changed something and the encoding is no longer a problem. |
It looks to me like urlparse is not used in this file, so these 4 lines can simply be deleted? Or am I missing something? |
Ok so will look at it again and remove. Maybe I was mixing something up. |
So I will remove changes on XML. And commit again. |
Since this is a actual bug I think we should resolve it soon. The URL's are encoded twice. This leads to problems with the XML handling. But I added a Bug #884 |
Just for clarification #884 will be solved in another PR. Not in this one. |
…oereb/pyramid_oereb into necessary_changes_for_xml2pdf_print
This pull request contains changes to XML which are necessary to satisfy XML2PDF print service. This is only a first approach. If we will see too heavy changes we will implement a dedicated XML2PDF renderer to produce such XML as second step.