Skip to content
Browse files

rename variable so my head doesnt explode

  • Loading branch information...
1 parent cd4f863 commit 7c8a5bf053d76839215e588148f32d7f95b5364d @mcdonc mcdonc committed Mar 22, 2011
Showing with 3 additions and 3 deletions.
  1. +3 −3 pyramid_handlers/__init__.py
View
6 pyramid_handlers/__init__.py
@@ -126,13 +126,13 @@ def locate_view_by_name(config, handler, route_name, action_decorator, name):
method_name = '__call__'
# Scan the controller for any other methods with this action name
- for meth_name, method in inspect.getmembers(
+ for attr, method in inspect.getmembers(
handler, inspect.ismethod):
configs = getattr(method, '__exposed__', [{}])
for expose_config in configs:
# Don't re-register the same view if this method name is
# the action name
- if meth_name == name:
+ if attr == name:
continue
# We only reg a view if the name matches the action
if expose_config.get('name') != method_name:
@@ -141,7 +141,7 @@ def locate_view_by_name(config, handler, route_name, action_decorator, name):
# so we copy each
view_args = expose_config.copy()
del view_args['name']
- config.add_view(view=handler, attr=meth_name,
+ config.add_view(view=handler, attr=attr,
route_name=route_name,
decorator=action_decorator, **view_args)

0 comments on commit 7c8a5bf

Please sign in to comment.
Something went wrong with that request. Please try again.