Onegov Reservation API

Core

class onegov.reservation.core.LibresIntegration[source]

Provides libres integration for onegov.core.framework.Framework based applications.

The application must be connected to a database

Usage:

from onegov.core import Framework

class MyApp(Framework, LibresIntegration):
    pass
configure_libres(**cfg)[source]

Configures the libres integration and leaves two properties on the class:

Libres_context

The libres context configured for the current application.

Libres_registrye

The libres registry bound to the current application.

With those two a scheduler can easily be created:

from libres import new_scheduler
scheduler = new_scheduler(
    app.libres_context, 'test', 'Europe/Zurich'
)