Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

* Fix ResourceConfigurator.add_method_config

  • Loading branch information...
commit 3cce4994295f88f763ed87ebac01064b7e4cef7a 1 parent 74c35c1
lloubiere authored January 30, 2013

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  pyramid_rest/resource.py
2  pyramid_rest/resource.py
@@ -129,7 +129,7 @@ def add_resource(
129 129
         self._add(config, res)
130 130
 
131 131
     def add_method_config(self, cls, method, settings):
132  
-        if 'cls' not in self.methods_configs:
  132
+        if cls not in self.methods_configs:
133 133
             self.methods_configs[cls] = dict()
134 134
         self.methods_configs[cls][method] = settings
135 135
 

0 notes on commit 3cce499

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