morepath.predicate – Predicate registry

The morepath.App.predicate() directive lets you install predicates for function that use reg.dispatch_external_predicates(). This is used by morepath.core to install the view predicates, and you can also use it for your own functions.

This implements the functionality that drives Reg to install these predicates.

See also morepath.directive.PredicateRegistry

class morepath.predicate.PredicateInfo(func, name, default, index, before, after)

Used by PredicateRegistry internally.

Is used to store registration information on a predicate before it is registered with Reg.