summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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__