Commits

Chris McDonough committed 1c67e08

docstring

Comments (0)

Files changed (1)

pylons/configuration.py

         return BFGConfigurator.add_route(self, name, npattern, **kw)
 
     def add_handler(self, handler, pattern, action=None, route_name=None, **kw):
-        """ Add a Pylons handler.  The route_name is the
-        handler.__name__ unless it is explicitly passed as
-        ``route_name``. If ``{action}`` or ``:action`` is in the
-        pattern, the exposed methods of the handler will be used as
-        views.  If ``action`` is passed, it will be considered the
-        method name of the handler to use as a view.  Passing both
-        ``action`` and having an ``{action}`` in the route pattern is
-        disallowed.  This method returns the result of add_route."""
+        """ Add a Pylons handler (add a route and some number of views
+        based on a class).  The route_name is ``handler.__name__``
+        unless it is explicitly passed as ``route_name``. If
+        ``{action}`` or ``:action`` is in the pattern, the exposed
+        methods of the handler will be used as views.  If ``action``
+        is passed, it will be considered the method name of the
+        handler to use as a view.  Passing both ``action`` and having
+        an ``{action}`` in the route pattern is disallowed.  Any extra
+        keyword arguments are passed along to ``add_route``.  This
+        method returns the result of add_route."""
         if isinstance(handler, basestring):
             handler = resolve_dotted(handler)