-
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
Use custom params from url GEO-2777 #986
Conversation
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.
LGTM, and tested successfully on dummy database
docker/config.yaml.mako
Outdated
# If this is not configured the wms_url_params will be used. | ||
# wms_url_keep_params: | ||
# - param1 | ||
# - param2 |
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.
not needed
@staticmethod | ||
def string_check(value): | ||
""" | ||
Check if the value given is a string. It it is not jon the values using comma separator. |
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.
Typos in the second sentence:
If it is not, assume it is a list and join the values using comma separator.
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.
Quick review (after jwkaltz), not tested.
It looks okay
|
||
:return: The configured wms_url_params. | ||
:rtype: list | ||
:rtype: dict |
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.
I think it sjhould be something like the return doc in your new get_custom_wms_params function.
99faf67
to
9e64fcb
Compare
Clones removed
==============
+ pyramid_oereb/contrib/print_proxy/mapfish_print.py -2
See the complete overview on Codacy |
This replaces #985
Addresses https://jira.camptocamp.com/browse/GEO-2777
Adds a parameter to get all the config params from a URL and add them in the print request for that map.
Custom parameters need to be specified in a list in the config.
This is implemented for the base maps requested in the restriction on landownership
TO TEST:
customParams
TRANSPARENT
will appear in thecustomParams
as in master.