agency.request

Module Contents

Classes

AgencyRequest

Extends the default Morepath request with virtual host support and

class agency.request.AgencyRequest(*args, **kwargs)[source]

Bases: onegov.org.request.OrgRequest

Extends the default Morepath request with virtual host support and other useful methods.

Virtual hosting might be supported by Morepath directly in the future: https://github.com/morepath/morepath/issues/185

app: onegov.agency.app.AgencyApp[source]
current_role() str | None[source]

Onegov Agency allows to additionally elevate the member role to the editor role by defining group role mappings.