thirdparty/google_appengine/lib/webob/tests/conftest.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

import os, sys
sys.path.insert(0, os.path.dirname(os.path.dirname(__file__)))
import pkg_resources
pkg_resources.require('WebOb')