You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One annoyance with predicates right now is that their signature is val, config which doesn't make much sense. It's not particularly good practice to pass around the config. The only reason it's done right now is because the containment predicate needs to call config.maybe_dotted. That's it. It'd be much preferred to be something like info, val which could more closely mirror the new IViewDeriverInfo. We could then define an IPredicateInfo which contained the registry and package information without passing the raw config.
This would be a backward compatibility issue, unfortunately, so I'd save it for Pyramid 2.0.
The text was updated successfully, but these errors were encountered:
One annoyance with predicates right now is that their signature is
val, config
which doesn't make much sense. It's not particularly good practice to pass around the config. The only reason it's done right now is because the containment predicate needs to callconfig.maybe_dotted
. That's it. It'd be much preferred to be something likeinfo, val
which could more closely mirror the newIViewDeriverInfo
. We could then define anIPredicateInfo
which contained the registry and package information without passing the rawconfig
.This would be a backward compatibility issue, unfortunately, so I'd save it for Pyramid 2.0.
The text was updated successfully, but these errors were encountered: