morepath.generic
– Generic dispatch functions¶
These generic functions are by Morepath’s implementation (response generation, link generation, authentication, json load/restore).
The functions are made pluggable by the use of the
reg.dispatch()
and reg.dispatch_external_predicates()
decorators. Morepath’s configuration function uses this to register
implementations using reg.Registry.register_function()
.
morepath.remember_identity()
, morepath.forget_identity()
and
morepath.settings()
are exported to the public API.