thirdparty/google_appengine/lib/django/tests/regressiontests/templates/views.py
author Sverre Rabbelier <srabbelier@gmail.com>
Wed, 21 Jan 2009 16:12:01 +0000
changeset 873 cbb1d15ffe91
parent 109 620f9b141567
permissions -rwxr-xr-x
Added a merge_params and check_access decorator The merge_params decorator is very simple and takes self._params and merges it with params. It's main purpose is to explicitly mark the views in which it is intended that self._params is merged raw. The check_access decorator factors out the access checking process and passes args and kwargs to the access checking methods. Patch by: Sverre Rabbelier

# Fake views for testing url reverse lookup

def index(request):
    pass

def client(request, id):
    pass

def client_action(request, id, action):
    pass