Skip to content
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

Fix TextAtWeb links GSPOE-29 #970

Merged
merged 4 commits into from
Dec 19, 2019
Merged

Fix TextAtWeb links GSPOE-29 #970

merged 4 commits into from
Dec 19, 2019

Conversation

marionb
Copy link
Contributor

@marionb marionb commented Dec 17, 2019

This PR changes the data structure of TextAtWeb in to an array of dictionaries such that it is possible to group the TextAtWeb from multiple legal provisions with the same title. The structure in the JSON is now as follows:

...
'TextAtWeb': [
    { 'URL': 'https://www.<URL1>'}
    { 'URL': 'https://www.<URL2>'}
    ...
]
...

TOTEST:
To be able to test the templates the PR openoereb/pyramid_oereb_mfp#44 is needed.

@marionb marionb requested review from jwkaltz and danduk82 December 17, 2019 09:55
@marionb marionb force-pushed the Fix-TextAtWeb-Links-GSPOE-29 branch 2 times, most recently from 4faec78 to c517231 Compare December 17, 2019 21:36
if element == 'LegalProvisions':
pdf_to_join.update([legal_provision['TextAtWeb'] for legal_provision in values])
# TESTME --> This line is not thoroughly tested for the full extract as it is not
Copy link
Member

@jwkaltz jwkaltz Dec 18, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is not testable in a local docker development environment, but I have tested it on a server using a the test release https://test.pypi.org/project/pyramid-oereb/1.5.2b3/
The full extract is working fine, both with grouping turned on and with grouping turned off.

@marionb marionb force-pushed the Fix-TextAtWeb-Links-GSPOE-29 branch from c517231 to 2f8b30e Compare December 19, 2019 07:01
@jwkaltz jwkaltz merged commit ead695d into master Dec 19, 2019
@jwkaltz jwkaltz deleted the Fix-TextAtWeb-Links-GSPOE-29 branch December 19, 2019 08:33
@marionb marionb self-assigned this Jan 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants