translator_directory.request

Classes

TranslatorAppRequest

Extends the default Morepath request with virtual host support and

Module Contents

class translator_directory.request.TranslatorAppRequest(*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

app: onegov.translator_directory.app.TranslatorDirectoryApp[source]

morepath.App instance currently handling request.

property is_member: bool[source]
property is_editor: bool[source]

Returns true if the current user is an editor.

property is_translator: bool[source]