translator_directory.request

Module Contents

Classes

TranslatorAppRequest

Extends the default Morepath request with virtual host support and

class translator_directory.request.TranslatorAppRequest(*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.translator_directory.app.TranslatorDirectoryApp[source]
is_member() bool[source]
is_editor() bool[source]

Returns true if the current user is an editor.

is_translator() bool[source]