Why
Blog
Product Manual
Development
Overview
FTD Templates
Using ftd_django.static()
Decorators
Activity Framework
Tracker Framework
Visit Framework
Setup

Decorators

At cDoc we use a few Python decorators.

analytics.decorators.log_http_event
This is a view decorator and should only be applied on a Django View.

@log_http_event(oid=1, okind_ekind=get_okind_ekind)
def view(request, *args, **kwargs):
pass
This decorator is a quick hack and we will soon refactor it to accept parameters from request object instead of hardcoding like this.