agency.request

Attributes

AppT

Classes

AgencyRequest

Extends the default Morepath request with virtual host support and

Module Contents

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

Bases: onegov.town6.request.TownRequest[AppT]

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

property current_role: str | None[source]

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