Robert Brewer  committed d674437

Fix for #1044 (RoutesDispatcher should dispatch to the controller itself instead of blowing up when no action specified)

  • Participants
  • Parent commits c647e69

Comments (0)

Files changed (1)

File cherrypy/

                 if hasattr(controller, "_cp_config"):
-            action = result.get('action', None)
+            action = result.get('action')
             if action is not None:
                 handler = getattr(controller, action, None)
                 # Get config from the handler 
                 if hasattr(handler, "_cp_config"): 
+            else:
+                handler = controller
         # Do the last path atom here so it can
         # override the controller's _cp_config.
         if last: