translator_directory.request

Attributes

AppT

Classes

TranslatorAppRequest

Extends the default Morepath request with virtual host support and

Module Contents

translator_directory.request.AppT[source]
class translator_directory.request.TranslatorAppRequest(*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 is_member: bool[source]

True if the current user is a member.

property is_editor: bool[source]

True if the current user is an editor.

property is_translator: bool[source]
property is_accountant: bool[source]