Onegov Feriennet API



alias of onegov.feriennet.request.FeriennetRequest

Returns True if the given request is allowed to access private search results. By default every logged in user has access to those.

This method may be overwritten if this is not desired.

banner(request, id)[source]

Randomly returns the html to one of the available booking banners.


Returns the currently active schema_name and it’s config.

invoice_collection(period_id=None, user_id=None)[source]

Returns the invoice collection guaranteed to be configured according to the organisation’s settings.


Returns the active invoice reference bucket.


Security, activity)[source]

Returns true if the given username is the owner of the given activity., identity, model, permission)[source]

Take away private permission for editors. For exceptions see the permission rules below., identity, model, permission)[source]

Give editors the ability to access the site collection., identity, model, permission)[source]

Give editors the ability to access the image file collection (but not the file collection!)., identity, model, permission)[source]

Give the editor private permission for activity collections (needed to create new activites)., identity, model, permission)[source]

Give the editor private permission for activities., identity, model, permission)[source]

Give the editor private permission for occasions., identity, model, permission)[source]

Give the editor private permission for notification templates., identity, model, permission)[source]

Give the editor private permission for notification templates., identity, model, permission)[source]

Only make activites anonymously accessible with certain states., identity, model, permission)[source]

Only make activites accessible with certain states (or if owner)., identity, model, permission)[source]

Ensure that logged in users may only change their own bookings., identity, model, permission)[source]

Ensure that organisators have access to the attendee colleciton.


class onegov.feriennet.models.activity.VacationActivity(**kwargs)[source]
property es_public

Returns True if the model is available to be found by the public. If false, only editors/admins will see this object in the search results.

property es_skip

Returns True if the indexing of this specific model instance should be skipped.

class onegov.feriennet.models.activity.ActivityTicket(**kwargs)[source]
class onegov.feriennet.models.activity.VacationActivityHandler(ticket, handler_id, handler_data)[source]
property deleted

Returns true if the underlying model was deleted. It is best to never let that happen, as we want tickets to stay around forever.

However, this can make sense in certain scenarios. Note that if you do delete your underlying model, make sure to call onegov.ticket.models.Ticket.create_snapshot() beforehand!

property email

Returns the email address behind the ticket request.

property title

Returns the title of the ticket. If this title may change over time, the handler must call self.refresh() when there’s a change.

property group

Returns the group of the ticket. If this group may change over time, the handler must call self.refresh() when there’s a change.

property extra_data

An array of string values which are indexed in elasticsearch when the ticket is stored there.

property undecided

Returns true if there has been no decision about the subject of this handler.

For example, if a reservation ticket has been accepted, but the reservation has been neither confirmed nor cancelled, the ticket can be seen as undecided.

This is an optional flag that may be implemented by handlers. If a ticket is undecided, the UI might show a special icon and it might warn the user if he closes the ticket without making a decision.

By default, the ticket is assumed to be decided for backwards compatibility and for tickets where this does not make sense (a simple form submission may not have any way of knowing if there has been a decision or not).


Returns the summary of the current ticket as a html string.

Returns the links associated with the current ticket in the following format:

    ('Link Title', 'http://link'),
    ('Link Title 2', 'http://link2'),

If the links are not tuples, but callables, they will be called with the request which should return the rendered link.


class onegov.feriennet.collections.activity.VacationActivityCollection(session, type=None, pages=0, 0, filter=None, identity=None)[source]

Allows subclasses to transform the given query before it is used to retrieve the batch. This is a good place to add additional loading that should only apply to the batch (say joining other values to the batch which are then not loaded by the whole query).


Returns the query based used by query(). Overriding this function is useful to apply a general filter to the query before any other filter is applied.

For example, a policy can be enforced that only allows public activites.


Returns an instance of the collection limited to the given page range.


class onegov.feriennet.forms.activity.VacationActivityForm(*args, **kwargs)[source]



class onegov.feriennet.layout.DefaultLayout(model, request)[source]
class onegov.feriennet.layout.VacationActivityCollectionLayout(model, request)[source]
class onegov.feriennet.layout.BookingCollectionLayout(model, request, user=None)[source]
class onegov.feriennet.layout.GroupInviteLayout(model, request)[source]
class onegov.feriennet.layout.VacationActivityFormLayout(model, request, title)[source]
class onegov.feriennet.layout.OccasionFormLayout(model, request, title)[source]
class onegov.feriennet.layout.VacationActivityLayout(model, request)[source]
class onegov.feriennet.layout.PeriodCollectionLayout(model, request)[source]
class onegov.feriennet.layout.PeriodFormLayout(model, request, title)[source]
class onegov.feriennet.layout.MatchCollectionLayout(model, request)[source]
class onegov.feriennet.layout.BillingCollectionLayout(model, request)[source]
class onegov.feriennet.layout.OnlinePaymentsLayout(*args, **kwargs)[source]
class onegov.feriennet.layout.BillingCollectionImportLayout(model, request)[source]
class onegov.feriennet.layout.BillingCollectionManualBookingLayout(model, request)[source]
class onegov.feriennet.layout.InvoiceLayout(model, request, title)[source]
class onegov.feriennet.layout.DonationLayout(model, request, title)[source]
class onegov.feriennet.layout.OccasionAttendeeLayout(model, request)[source]
class onegov.feriennet.layout.NotificationTemplateCollectionLayout(model, request, subtitle=None)[source]
class onegov.feriennet.layout.NotificationTemplateLayout(model, request, subtitle=None)[source]
class onegov.feriennet.layout.VolunteerLayout(model, request)[source]
class onegov.feriennet.layout.VolunteerFormLayout(model, request)[source]


class onegov.feriennet.theme.FeriennetTheme(compress=True)[source]
property post_imports

Imports added after the foundation import. The imports must be found in one of the paths (see extra_search_paths).

The form of a single import is ‘example’ (which would search for files named ‘example.scss’)

property extra_search_paths

A list of absolute search paths added before the actual foundation search path.

Initial Content

Homepage Widgets