-
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
Add plr sorting hook #979
Add plr sorting hook #979
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.
I think we already had a discussion about sorting in pyramid_oereb. If I remember rightly, the result was to implement no sorting because this step should be done in the client application according to its special needs. Otherwise, you will have to rely on the extract to be parsed in the right order. The only exception is the print proxy for Mapfish Print, which acts as kind of client.
But anyway, if it is a requirement to get a sorted extract, this PR looks good to me.
Co-Authored-By: Benjamin <benjamin.gerber@camptocamp.com>
Co-Authored-By: Benjamin <benjamin.gerber@camptocamp.com>
137425f
to
4ea47d7
Compare
This PR introduces a new hook, to be able to define a sorting of the plrs within the themes in the extract data.
It also proposes a contrib method for one specific sorting implementation, by type_code, as requested by @romefi . This contrib method can be tested by defining in the project configuration file the following:
sort_within_themes_method: pyramid_oereb.contrib.plr_sort_within_themes_by_type_code
(see example in new standard configuration file)
C2C reference ticket: GEO-2844