summaryrefslogtreecommitdiff
path: root/repoze
diff options
context:
space:
mode:
authorChris McDonough <chrism@agendaless.com>2009-10-18 16:36:51 +0000
committerChris McDonough <chrism@agendaless.com>2009-10-18 16:36:51 +0000
commitca63fe47a6ae1318ae11a4b41d36f69a4664c506 (patch)
tree1eb0708f0097be62e5a08dd5a3af6fd4c46839c2 /repoze
parente60fc706605a12035da5f873bd0388371b378337 (diff)
downloadpyramid-ca63fe47a6ae1318ae11a4b41d36f69a4664c506.tar.gz
pyramid-ca63fe47a6ae1318ae11a4b41d36f69a4664c506.tar.bz2
pyramid-ca63fe47a6ae1318ae11a4b41d36f69a4664c506.zip
Renames.
Diffstat (limited to 'repoze')
-rw-r--r--repoze/bfg/zcml.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/repoze/bfg/zcml.py b/repoze/bfg/zcml.py
index 8615b0d31..d08a61303 100644
--- a/repoze/bfg/zcml.py
+++ b/repoze/bfg/zcml.py
@@ -701,7 +701,6 @@ class BFGMultiGrokker(martian.core.MultiInstanceOrClassGrokkerBase):
class BFGClassGrokker(object):
implements(martian.interfaces.IGrokker)
- martian = martian # for unit tests
martian.component(Class)
def grok(self, name, class_, module_info=None, **kw):
# The class itself may be decorated, so we feed it to BFGViewGrokker
@@ -710,9 +709,9 @@ class BFGClassGrokker(object):
# grok any decorations attached to the class' method (direct
# methods only, not methods of any base class)
methods = inspect.getmembers(class_, inspect.ismethod)
- basemethods = class_.__dict__.keys()
+ classmethods = class_.__dict__.keys()
for method_name, method in methods:
- if method_name in basemethods:
+ if method_name in classmethods:
# it's not an inherited method
config = getattr(method, '__bfg_view_settings__', [])
for settings in config: