summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris McDonough <chrism@agendaless.com>2010-04-18 22:07:55 +0000
committerChris McDonough <chrism@agendaless.com>2010-04-18 22:07:55 +0000
commit32418e223db03ebdb1ba3fc6ed64f7c1a79a3f72 (patch)
tree236fca0943c7c6b6cc87e9c129af5a1e57c71307
parent44907a59eab83f5e4a208141280afdb281d9ff07 (diff)
downloadpyramid-32418e223db03ebdb1ba3fc6ed64f7c1a79a3f72.tar.gz
pyramid-32418e223db03ebdb1ba3fc6ed64f7c1a79a3f72.tar.bz2
pyramid-32418e223db03ebdb1ba3fc6ed64f7c1a79a3f72.zip
Comment.
-rw-r--r--repoze/bfg/view.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/repoze/bfg/view.py b/repoze/bfg/view.py
index 2ccc75f5c..f88d8e973 100644
--- a/repoze/bfg/view.py
+++ b/repoze/bfg/view.py
@@ -489,6 +489,9 @@ class bfg_view(object):
info = self.venusian.attach(wrapped, callback, category='bfg')
if info.scope == 'class':
+ # if the decorator was attached to a method in a class, or
+ # otherwise executed at class scope, we need to set an
+ # 'attr' into the settings if one isn't already in there
if settings['attr'] is None:
settings['attr'] = wrapped.__name__