diff options
author | bbangert <none@none> | 2006-07-12 14:08:08 -0700 |
---|---|---|
committer | bbangert <none@none> | 2006-07-12 14:08:08 -0700 |
commit | 0c0285ef77a455bc6e852b9024a9ecb556fba092 (patch) | |
tree | 0e0f98829ae052c5ff23dda7709a12a6c48dcf37 | |
parent | 8c7211d4f3d3dbc7bf3a8a1114c50a04f091d89c (diff) | |
download | routes-0c0285ef77a455bc6e852b9024a9ecb556fba092.tar.gz |
[svn] Fixed bug related to handling keyword argument controller.
--HG--
branch : trunk
-rw-r--r-- | CHANGELOG | 1 | ||||
-rw-r--r-- | routes/base.py | 3 |
2 files changed, 3 insertions, 1 deletions
@@ -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', {}) |