Code documentation

Caffeine app

caffeine.admin

caffeine.authbackend

caffeine.forms

caffeine.middleware

class caffeine.middleware.EnforceTimezoneMiddleware

Middleware to enforce that users have a time zone set.

process_request(request)

Redirects to the time zone selection vie and passes the originally requested URL to that view if the current user does not have a time zone set.

Parameters:request (HttpRequest) – the current request
Returns:redirect or None

caffeine.models

caffeine.templatetags.caffeine

caffeine.templatetags.caffeine.publicurl(context, username=None)
caffeine.templatetags.caffeine.ontherunurl(context, user=None)
caffeine.templatetags.caffeine.messagetags(value, tag)

caffeine.views

Todo

document caffeine.views (there are import errors in django-registration)

Caffeine API v1 app

Core app

core.utils.json_response(func)

Decorator for wrapping the result of a function in a JSON response object.