feriennet.request

Classes

FeriennetRequest

Extends the default Morepath request with virtual host support and

Module Contents

class feriennet.request.FeriennetRequest(*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.feriennet.app.FeriennetApp[source]

morepath.App instance currently handling request.

property is_organiser: bool[source]

Returns true if the current user is an organiser or better.

property is_organiser_only: bool[source]

Returns true if the current user is an organiser, but not an admin.

property is_manager: bool[source]

Using feriennet only admins are managers. The editors are organisers with a very limited set of capabilities.

property is_admin: bool[source]

Returns true if the current user is an admin.