Source

CherryPy / cherrypy / _cpdispatch.py

Author Commit Message Labels Comments Date
Robert Brewer avatarRobert Brewer
A few Python 2.3 fixes.
Robert Brewer avatarRobert Brewer
Fix for #1053 (types.ClassType gone in Python 3)
Robert Brewer avatarRobert Brewer
Bye bye, py2/3.
Robert Brewer avatarRobert Brewer
Freeow. The magic cherrypy/_cpcompat.py module to take all our py3k fears away.
Robert Brewer avatarRobert Brewer
Fix for #1044 (RoutesDispatcher should dispatch to the controller itself instead of blowing up when no action specified)
Robert Brewer avatarRobert Brewer
Fix for #1045 (CherryPy should support uninstantiated classes as controllers, and instantiate them on dispatching)
Robert Brewer avatarRobert Brewer
Fix for #1046 (Dispatching via RoutesDispatcher should not blow up on anonymous routes (routes with no name))
Default avatar shadowman131
r2723 for trunk - don't call _cp_dispatch with empty vpath
Default avatar shadowman131
Merged in changes from python3: r2710 r2711 r2714 r2718 r2719 r2720 r2721 . cherrypy.popargs() and _cp_dispatch fixes.
Robert Brewer avatarRobert Brewer
Removed AttributeDocstring metaclass in favor of Sphinx-style docstrings. :/ Touched up some docs.
Robert Brewer avatarRobert Brewer
Made dot-to-underscore translation extensible.
Robert Brewer avatarRobert Brewer
Docs: more refman work.
Default avatar jaraco
Updated documentation for _cpdispatch.VirtualHost to fix errors in sphinx auto generation
Default avatar Lakin Wecker
Fix for #953 - when handlers take arguments that have default values, don't count those arguments as missing. This only showed up when the handler itself raised a TypeError.
Robert Brewer avatarRobert Brewer
All internals now use cherrypy.serving.request/response instead of request/response for a speed boost.
Robert Brewer avatarRobert Brewer
trunk: more syntax syncs with python3, including a couple bugfixes that were done in the python3 branch
Default avatar Lakin Wecker
trunk - Cosmetic change to bring it up to par with python3
Robert Brewer avatarRobert Brewer
More trunk test fixes, inlucding backport of [2282] from python3 to trunk.
Default avatar Lakin Wecker
trunk - Porting the cherrypy.lib.httputil name change. It'll be easier to maintain two released branches if the modules are named the same. However, in the 2.6 branch we'll leave cherrypy.lib.http working and deprecate it for 3.3.
Robert Brewer avatarRobert Brewer
Made MethodDispatcher grab any config on the subhandlers.
Default avatar Lakin Wecker
#883 - (last comments) - provide a way to turn off the mismatched parameter messages with tests.
Default avatar Lakin Wecker
#869 - Change the name from 'dispatch' to be configurable on a per Dispatcher basis. The default name is _cp_dispatcher
Default avatar Lakin Wecker
Inlining it as it's not really worth the proliferation of a functions.
Default avatar Lakin Wecker
As per fumanchu's suggestion - a much shorter obvious implementation of the method (like the one we have now) doesn't need the license
Default avatar Lakin Wecker
#883 - Raise the original handler error whenever test_callable_spec raise an error.
Default avatar Lakin Wecker
Fixes #883 - Add in a better getargspec that works on callable objects. Add in tests that assert two things: 1. That our 400/404 detection mechanism works on callable objects and that when a handler raises a TypeError it gets re-raised into a 500 error.
Default avatar Lakin Wecker
#869 - Don't call exposed dispatch objects for the dispatch step
Default avatar Lakin Wecker
#869 - added the ability for dynamic dispatching by the controller to better allow urls of the form: /users/123/addresses/3/city
Default avatar Lakin Wecker
#733 - Return a 404 when query parameters passed to a handler are incorect. Similarly return a 404 when path atoms are incorrectly passed to a handler. Alternatively return a 400 when body params are incorrectly passed to a handler. Includes tests.
Sylvain Hellegouarch avatarSylvain Hellegouarch
Test and fix for #706
  1. Prev
  2. 1
  3. 2
  4. Next
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.