Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upallow predicate values to participate in view weighting #1863
Comments
mmerickel
added
the
feature-request
label
Jul 30, 2015
mmerickel
referenced this issue
Oct 13, 2016
Closed
Pyramid 2.0 could restrict the request methods by default in `add_view`, `view_config`. #2796
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
mmerickel commentedJul 30, 2015
Copied from a paste in #pyramid irc:
Basically the two views have different values for their
request_parampredicate but they do not conflict and are ambiguously ordered. This strategy only works if the predicate values are mutually exclusive such that no value in one view is a subset of values in another view.We should add a new sortable attribute to predicates or use the phash itself to contribute to the weighting such that 2 views with the same predicate but different values can be sorted appropriately.