Create a sensible decorator for _cp_dispatch
Since _cp_config has a decorator, and _cp_dispatch follows that naming trend, a sensible decorator (possibly a class decorator) that is a shortcut for dispatch's most common use case would be a good idea.
One issue with class decorators is that they are Py3k only; however, the decorator could perhaps be polymorphic (like cherrypy.expose), also allowing:
class Test: _cp_dispatch = cherrypy.dispatch_decorator('hi')
The decorator / default dispatch handler should probably just pop the first vpath element to a specified request parameter name ('hi' above), then return getattr(self, vpath, None) to resume normal object traversal (note that the next token vpath is popped after returning).
Possible decorator names: cherrypy.dispatch, ... cherrypy.url_parameter, cherrypy.parameter? Maybe? Just thinking aloud.
Reported by firstname.lastname@example.org