summaryrefslogtreecommitdiff
path: root/repoze/bfg/zcml.py
diff options
context:
space:
mode:
authorChris McDonough <chrism@agendaless.com>2009-09-14 07:58:48 +0000
committerChris McDonough <chrism@agendaless.com>2009-09-14 07:58:48 +0000
commit89da13b76ce3370dcf86750758d8a8d5d2960500 (patch)
treed90ce8bf5f7be33a7a75e7fd22cecd3b87f53859 /repoze/bfg/zcml.py
parent4eb45e9de657bedeb0b03469781c35758500dfa2 (diff)
downloadpyramid-89da13b76ce3370dcf86750758d8a8d5d2960500.tar.gz
pyramid-89da13b76ce3370dcf86750758d8a8d5d2960500.tar.bz2
pyramid-89da13b76ce3370dcf86750758d8a8d5d2960500.zip
Provide wrapper behavior to bfg_view decorator.
Diffstat (limited to 'repoze/bfg/zcml.py')
-rw-r--r--repoze/bfg/zcml.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/repoze/bfg/zcml.py b/repoze/bfg/zcml.py
index 657105e34..40226b1d1 100644
--- a/repoze/bfg/zcml.py
+++ b/repoze/bfg/zcml.py
@@ -725,11 +725,13 @@ class BFGViewFunctionGrokker(martian.InstanceGrokker):
request_method = obj.__request_method__
request_param = obj.__request_param__
containment = obj.__containment__
+ wrapper = obj.__wrapper_viewname__
context = kw['context']
view(context, permission=permission, for_=for_,
view=obj, name=name, request_type=request_type,
route_name=route_name, request_method=request_method,
- request_param=request_param, containment=containment)
+ request_param=request_param, containment=containment,
+ wrapper=wrapper)
return True
return False