1. cherrypy
  2. CherryPy

Source

CherryPy / cherrypy / tutorial / tut07_sessions.py

The default branch has multiple heads

Author Commit Message Date Builds
Gustavo Picon
Running: autopep8 -vvvvv -i `find . -name '*.py'`
Branches
autopep8
Gustavo Picon
Removed trailing whitespace from the codebase. sed -i '' -e 's/ *$//' `find cherrypy -name '*.py'`
Robert Brewer
Bye bye, py2/3.
Robert Brewer
Fixing tutorials which did not run on command-line.
Robert Brewer
Fix for #756 (Deprecate server.quickstart): * server.quickstart now does nothing but raise a warning. * Made 'root' argument to cherrypy.quickstart optional (to make tutorials easier, but it applies broadly). * Removed all calls to server.quickstart.
Robert Brewer
New pywebd module. Trunk is now "3.1alpha".
Robert Brewer
Changed server.start to server.quickstart, and server.start_all to server.start.
Sylvain Hellegouarch
All tutotials were missing an import os.path and could not run
Robert Brewer
Root and config are now isolated per app: 1. object_path is now called path_info, and there's a new request.script_name attribute. This should equal the mount point of the current application. 2. cherrypy.root is gone, use cherrypy.request.app.root for now instead. Perhaps cherrypy.root will reappear and point to that. 3. cherrypy.tree.mount_points has been replaced with cherrypy.tree.apps, a dict of the form {script_name: Application(…
Robert Brewer
Separated cherrypy.server (HTTP) from cherrypy.engine (app): 1. Most CP apps must now make both a call to cherrypy.server.start(server=None) and a call to cherrypy.engine.start(blocking=True). 2. The on_start_server_list and on_stop_server_list are now on_start_engine_list and on_stop_engine_list. 3. "start_with_callback" is now an attribute of Engine. So is "request". 4. Server.start now takes a single "server" arg, which can be a server instance, a st…
Robert Brewer
Only one failing test now (sessions)!
Robert Brewer
Removed a bunch of instances of the word "filter".
Remi Delon
Big change: camelCase to lower_with_underscore names (still need to update the book)
Robert Brewer
Tutorial fixes, plus a bug in _cputil.getErrorPage.
Robert Brewer
1. Config section [global] (pathless) is now distinct from [/] (root path); they are no longer synonyms. "global" is the parent of "/". 2. The Request-URI is now parsed much earlier in Request processing, so that onStartResource and error filter methods may have access to it. 3. Absolute URI's (on the request line) are now converted to relative URI's to facilitate configMap lookups. 4. A Request-URI of "*" sets cherrypy.request.path to "global" (again for configMap). 5. Fixed a bug in config.getAll where the initial slash was miss…
Michael Robinson
sessionFilter: fixed expired() bug. Finished implementing the session filter configuration changes. cherrypy.session is an alias for cherrypy.session.default, so you can use cherrypy.session[key], or cherrypy.session.default[key], but the session attributes (sessionKey, timeout, ...) can only be accessed through cherrypy.session.default
Robert Brewer
Implements ticket #195. 1. cpg module removed, all content moved into cherrypy.__init__. 2. Removed some circular imports in sessionfilter by moving sessionfilter.sessionfilter and _sessionTypes into sessionfilter.__init__. 3. renamed _cpconfig to "config". 4. renamed _cpserver to "server". 5. renamed cperror to _cperror; cherrypy.__init__ now imports * from _cperror.
Michael Robinson
new getObjectTrail function, simplified session configuration
Remi Delon
Re-numbered tutorials (after removing aspect tutorial) and updated test suite