feriennet.request

Module Contents

Classes

FeriennetRequest

Extends the default Morepath request with virtual host support and

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]
is_organiser() bool[source]

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

is_organiser_only() bool[source]

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

is_manager() bool[source]

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

is_admin() bool[source]

Returns true if the current user is an admin.