From 32418e223db03ebdb1ba3fc6ed64f7c1a79a3f72 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Sun, 18 Apr 2010 22:07:55 +0000 Subject: Comment. --- repoze/bfg/view.py | 3 +++ 1 file changed, 3 insertions(+) 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__ -- cgit v1.2.3