pas.request

Classes

PasRequest

Extends the default Morepath request with virtual host support and

Module Contents

class pas.request.PasRequest(*args, **kwargs)[source]

Bases: onegov.town6.request.TownRequest

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 is_parliamentarian: bool[source]
property current_parliamentarian: onegov.pas.models.PASParliamentarian | None[source]

Returns the current parliamentarian if user is parliamentarian.