summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbbangert <none@none>2006-07-12 14:08:08 -0700
committerbbangert <none@none>2006-07-12 14:08:08 -0700
commit0c0285ef77a455bc6e852b9024a9ecb556fba092 (patch)
tree0e0f98829ae052c5ff23dda7709a12a6c48dcf37
parent8c7211d4f3d3dbc7bf3a8a1114c50a04f091d89c (diff)
downloadroutes-0c0285ef77a455bc6e852b9024a9ecb556fba092.tar.gz
[svn] Fixed bug related to handling keyword argument controller.
--HG-- branch : trunk
-rw-r--r--CHANGELOG1
-rw-r--r--routes/base.py3
2 files changed, 3 insertions, 1 deletions
diff --git a/CHANGELOG b/CHANGELOG
index 354c37a..a539530 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -2,6 +2,7 @@ Routes Changelog
========================
-- 1.3.3 (**SVN**)
+* Fixed bug related to handling keyword argument controller.
* Added URL generation handling for a 'method' argument. If 'method' is specified, it
is not dropped and will be changed to '_method' for use by the framework.
* Added conditions option to map.connect. Accepts a dict with optional keyword args
diff --git a/routes/base.py b/routes/base.py
index 9defe1e..4b578cd 100644
--- a/routes/base.py
+++ b/routes/base.py
@@ -754,7 +754,7 @@ class Mapper(object):
continue
return None
- def resource(self, controller, **kwargs):
+ def resource(self, controller_name, **kwargs):
"""Generate routes for a controller resource
The controller should be the name of the controller for which a set
@@ -819,6 +819,7 @@ class Mapper(object):
# has named route "category_message"
"""
+ controller = controller_name
collection = kwargs.pop('collection', {})
member = kwargs.pop('member', {})
new = kwargs.pop('new', {})