agency.request

Classes

AgencyRequest

Extends the default Morepath request with virtual host support and

Module Contents

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]

morepath.App instance currently handling request.

property current_role: str | None[source]

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