Source

CherryPy / cherrypy / _cpmodpy.py

Author Commit Message Labels Comments Date
Robert Brewer
Oops. Fix for buglet introduced in [2499].
Robert Brewer
Fix for #881 (Support specifying multiple imports/function calls via PythonOption cherrypy.setup instead of just one.).
Robert Brewer
Removed py3print.
Lakin Wecker
trunk - more changes to bring the two branches into a more similar state - this time normalizing StringIO imports.
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
Moved all bus plugins onto the engine object itself, and fixed a couple bus details along the way.
Lakin Wecker
Only call the _console_control_handler unsubscribe if the attribute is available.
Robert Brewer
mod_python: send bus messages to the apache log, plus cherrypy.setup arg now can take a bare module to import (without having to call a ::function).
Robert Brewer
Fix for #751 (logging: Python file objects are not thread-safe). Whew. Finally got all the bus operations where I want em: 1. There's a new EXITING state 2. bus.block() waits for EXITING now instead of STOPPED, and also wait for all threads to exit, so the main thread doesn't exit (and run atexit callbacks) too early. 3. bus.exit() no longer calls sys.exit. Instead, exit is used to signal the main thread to unblock and terminate normally. This means some callers of stop need(ed) to be changed to call exit instead. …
Robert Brewer
Trunk fix for #752 (Return cherrypy.server to a single-server model): 1. Change restsrv.servers.ServerManager (multiple httpservers) to ServerAdapter (one httpserver). 2. cherrypy.server is now a subclass of ServerAdapter, and is subscribed by default. 3. Made several plugin methods idempotent that weren't before. 4. Added names to win32 bus state events. Also fixed a buglet in win32 block(). 5. Added repr to wspbus.states.State objects. 6. Did ''not'' change …
Robert Brewer
Fix to cpmodpy for latest Bus, plus some test fixes for mod_python runs.
Robert Brewer
Fix for #740 (Default server.socket_host to IPv4 address).
Robert Brewer
restsrv changes: 1. Renamed base.Engine to wspbus.Bus and made it generally useful in isolation. 2. Renamed 'reexec' channel to 'restart'. 3. Merged engine.wait into bus.block. The block method now takes an optional 'state' arg. 4. Made the SignalHandler auto-register some signals on init. 5. Added win32events for all states. 6. Made all states into sentinels instead of ints. New wspbus.states (and bus.state…
Robert Brewer
Fixes to cpmodpy to allow streaming and guarantee running on_end_request hooks.
Robert Brewer
cpmodpy fix for get_serving bugs.
Robert Brewer
Doc updates.
Robert Brewer
New pywebd module. Trunk is now "3.1alpha".
Robert Brewer
New engine.release method, which decouples request and engine. Also new server.base method, which simplifies cherrypy.url. Finally, cherrypy._serving is promoted to cherrypy.serving, and has a new "load" method.
Robert Brewer
InternalRedirect changes: 1. Moved InternalRedirect out of the Request object, so that an IR creates a separate Request object per redirect. This makes the design of hooks and tools (both builtin and user-defined) much simpler and safer. 2. New _cpwsgi.InternalRedirector for the WSGI implementation. Users who do not use InternalRedirects at all can remove this from the wsgi pipeline if they wish. 3. InternalRedirect tra…
Sylvain Hellegouarch
Updated docstring with a basic example on how to use the _cpmodpy module
Robert Brewer
Fix for #535 (Apache re-processes Range headers). _cpmodpy now uses a new "ignore_headers(['Range'])" Tool by default.
Robert Brewer
Overhaul of config system: 1. New docstring for config module! 2. Put all entries into a config namespace. New deadlock, log, request and response namespaces. 3. Request and response entries now directly modify attributes of cherrypy.request and .response, and consumer code looks up those attributes, not config. This also allows interactive inspection of defaults. 4. Removed 'log_config' config entry. Use engine.on_star…
Robert Brewer
Fix for #553 (pure WSGI apps on the tree). Request.app now MUST be a cherrypy.Application instance (not None) before Request.run() is called.
Robert Brewer
Moved some Apache control code from benchmark to _cpmodpy, where it can be more useful.
Robert Brewer
Lots of mixedCase to lower_with_underscores.
Robert Brewer
Replaced request.remote_addr, remote_port, and remote_host with a single "remote" attribute, an instance of lib.http.Host, which has "ip", "port" and "name" attributes. Added a similar request.local attribute. Changed request() signature to (local, remote, scheme). This allows requests run behind multiple HTTP servers to know the address info for their particular connection.
Robert Brewer
WSGI-related changes: 1. Changed Request.run from request_line arg to deconstructed args: method, path, query_string, and protocol. 2. Moved HTTP protocol checking from _cprequest to _cpwsgiserver. What was cherrypy.response.version is now cherrypy.request.protocol (tuple form of SERVER_PROTOCOL). request.version and response.version attributes removed. _cpwsgiserver now writes out server.protocol, not SERVER_PROTOCO…
Robert Brewer
Added bare_error trap in _cpmodpy (which fixes some failing tests). Also dropped redundant cookie logic in _cpmodpy.
Robert Brewer
Much Better Logging (see #256). Apps now have their own access and error loggers (whose config entries must be at "/"), and the global access logger has been removed (although you can make one manually if you like).
Robert Brewer
Fix for mp < 3.1 which didn't have apache.mpm_query.
  1. Prev
  2. 1
  3. 2
  4. Next