kepler.views module

The module defines the views of the application.

kepler.views.basic_view(request)

The unction implements the basic view handler that can be used to handle almost any view.

Parameters:request – The Pyramid request object of the view handler.
kepler.views.edit_notice_board(request)

The function is the handler for resource view.

kepler.views.edit_supervisor_time_slot_view(request)

The function is the handler for edit_super_visor_time_slot view.

kepler.views.edit_time_slot_view(request)

The function is the handler for edit_time_slot view.

kepler.views.forbidden_view(request)
kepler.views.help_view(request)

The function is the handler for help view.

kepler.views.home_view(request)

The function is the handler for home view.

kepler.views.login_as(request)

A function used for testing different user roles.

kepler.views.login_as_user(request, account_name)

The function is used to login as the user with the specified account name.

kepler.views.login_oauth_view(request)

The function handles the login procedures through JYU OAuth API.

kepler.views.login_view(request)

The function is the handler for login view.

kepler.views.logout(request)

The function invalidates and deletes the current session.

Parameters:request – The Pyramid request object.
kepler.views.logout_view(request)

The function implements the logout view.

kepler.views.manage_time_slots_view(request)

The function is the handler for manage_time_slots view.

kepler.views.new_reservation(request)

The function is the handler for new_reservation view.

kepler.views.notice_board_view(request)

The function is the handler for notice_board view.

kepler.views.redirect_to_home(request)

The helper function redirects the request to the “home” view.

kepler.views.redirect_to_login(request)

The helper function redirects the request to the login view.

kepler.views.reservations(request)

The function is the handler for reservations view.

kepler.views.resources_view(request)

The function is the handler for resources view.

kepler.views.roles_view(request)

The function is the handler for roles view.

kepler.views.supervisor_time_slot_view(request)

The function is the handler for supervisor_time_slot view.

kepler.views.translation_js(request)

The view generates javascript file for translations.

Parameters:request – Pyramid request object.
Returns:The generated javascript for translations.
kepler.views.unit_groups_view(request)

The function is the handler for unit_groups view.

kepler.views.units_view(request)

The function is the handler for units view.

kepler.views.user_groups_view(request)

The function is the handler for user_groups view.

kepler.views.user_info_view(request)

The function is the handler for user_info view.