Source

CherryPy / cherrypy / _cputil.py

Author Commit Message Labels Comments Date
Default avatar Remi Delon
Had broken a few things in changeset [924]. Fixing them. Tests now run fine again.
Default avatar Remi Delon
Better formatting of tracebacks: the page handler is now included at the top. That way the error it still a string and not a tuple so an error message can be on multiple lines and it gets displayed fine in the browser
Default avatar Remi Delon
Patch for serious security flaw in staticfilter
Robert Brewer avatarRobert Brewer
Fix for #145. See the ticket for details about this fix.
Sylvain Hellegouarch avatarSylvain Hellegouarch
The HTTTPErrorTemplate was using XHTML but the response content-type was set to text/html which is wrong. Since many user agents can't understand XHTML when using the correct content type, I've changed the template to use regular HTML
Robert Brewer avatarRobert Brewer
New signature for cherrypy.log.
Default avatar Remi Delon
More PEP 8 (including objectPath -> object_path); Changed virtualhostfilter to conform to PEP8; Fixes to sessionauthenticatefilter
Default avatar Remi Delon
Another fix for #405: Try old name first
Default avatar Remi Delon
Fix for #405: Try old name first
Sylvain Hellegouarch avatarSylvain Hellegouarch
added the response_headers_filter and headers decorator to fix ticket 302
Default avatar Remi Delon
Big change: camelCase to lower_with_underscore names (still need to update the book)
Robert Brewer avatarRobert Brewer
Made response.body into a descriptor:
Robert Brewer avatarRobert Brewer
Some code was setting response.body to a string instead of a [string].
Default avatar Remi Delon
Conform date format to common access log
Robert Brewer avatarRobert Brewer
Modified _cpGlobalInformation to _cpGlobalHandler, and moved its call from _cphttptools to _cputil.get_object_trail. Also made it handle all methods, and fixed the NameError it was generating, and wrote a test.
Robert Brewer avatarRobert Brewer
Logging of request headers:
Sylvain Hellegouarch avatarSylvain Hellegouarch
Moved the code handling OPTIONS * request to _cputil to a special function attribute called _cpGlobalInformation.
Robert Brewer avatarRobert Brewer
Moved filter-handling code into lib.filter.__init__.py. Also moved unrepr and modules(), attributes() functions into cptools.
Robert Brewer avatarRobert Brewer
Removed really weird dead code in _cputil. Somebody's indenter must have been on the fritz.
Robert Brewer avatarRobert Brewer
Fix for #386 (separate config entry for logging unhandled exceptions).
Robert Brewer avatarRobert Brewer
Positional params shouldn't replace '.' with '_'.
Robert Brewer avatarRobert Brewer
Fix for broken errorPage tests in Python 2.4.
Robert Brewer avatarRobert Brewer
Moved a bunch of stuff from lib/cptools into a new lib/httptools module. The new module does not reference cherrypy (and should never do so). Think of it as the httptools module Python should distribute. ;)
Robert Brewer avatarRobert Brewer
Moved IE-friendly-error-fix from finalize method to HTTPError.
Robert Brewer avatarRobert Brewer
1. Refactored mapPathToObject to be cleaner and faster.
Robert Brewer avatarRobert Brewer
Fix for #367 (error pages should reset response headers). And a new _cpOnHTTPError special attribute just for kicks.
Robert Brewer avatarRobert Brewer
Fix for #374 (reduce license boilerplate to a single LICENSE.txt file).
Robert Brewer avatarRobert Brewer
Fix for #373 (arbitrary mount points, or "virtual roots"). All internal use of request.path has been changed to inspect request.objectPath instead (the "rewritten path"). The request.path should never be rewritten; instead, it should only be used to generate new URL's based on the original path. The request.originalPath attribute can now probably be deprecated.
Robert Brewer avatarRobert Brewer
Merged /requestobj branch to trunk. cherrypy.serving.request and .response are now instances of _cphttptools.Request and .Response. ALL HTTP SERVER AUTHORS NEED TO UPGRADE THEIR INTERFACES to _cpserver.request as the signature has changed.
Default avatar Remi Delon
Removing VirtualHostFilter for the 2.1 release
Tags
cherrypy-2.1.1
  1. Prev
  2. 1
  3. 2
  4. 3
  5. 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.