Package zinnia :: Package views :: Module decorators
[hide private]

Module decorators

source code

Decorators for zinnia.views

Functions [hide private]
 
update_queryset(view, queryset, queryset_parameter='queryset')
Decorator around views based on a queryset passed in parameter, who will force the update of the queryset before executing the view.
source code
 
password(request, *args, **kwargs)
Displays the password form and handle validation by setting the valid password in a cookie.
source code
 
protect_entry(view)
Decorator performing a security check if needed around the generic.date_based.entry_detail view and specify the template used to render the entry
source code
Variables [hide private]
  __package__ = 'zinnia.views'
Function Details [hide private]

update_queryset(view, queryset, queryset_parameter='queryset')

source code 

Decorator around views based on a queryset passed in parameter, who will force the update of the queryset before executing the view. Related to issue http://code.djangoproject.com/ticket/8378

password(request, *args, **kwargs)

source code 

Displays the password form and handle validation by setting the valid password in a cookie.

Decorators:
  • @csrf_protect
  • @never_cache