Source

CherryPy / cherrypy / test / test_sessionauthenticate.py

Author Commit Message Labels Comments Date
Robert Brewer
Bye bye, py2/3.
Robert Brewer
More Python 2.3 fixes.
Robert Brewer
Freeow. The magic cherrypy/_cpcompat.py module to take all our py3k fears away.
Robert Brewer
Removed test.py etc.
Joseph Tate
Convert the tests to use nose instead of our own runner. This strips out much coverage and profiling (handled by nose) and lets you focus on writing tests.
Robert Brewer
Fix for #906 (Firefox displays a popup on redirect). Reverted [2149] and changed the trailing slash tool to prefer 301.
Robert Brewer
Changed HTTPRedirect to default to 307/302 if not GET. Also fixed SessionAuth to only accept POST for do_login/do_logout (since those behaviors are not safe and should not be cached).
Robert Brewer
Moved "environment: test_suite" out of individual tests and into helper.py. Moved setup_server() call out of individual tests and into helper.py. Added a new test for per-handler max_request_body_size shenanigans.
nick125
* Test case and fix for Ticket #780
Sylvain Hellegouarch
Implemented a login attribute for the request and answered #653
Robert Brewer
More SessionAuth cleanups. Replaced 'login' with 'username' whenever appropriate ('login' should be used as the verb only ('log in'), not as a synonym for 'username'). Also made symmetric do_* and on_* methods. The new on_check method replaces the load_user_by_username method--this facilitates a user-supplied fix for #224 (store the user details in the session) by passing the same loaduserbyusername callback to tools.session_auth.on_login instead of tools.session_auth.on_check.
Robert Brewer
cptools.session_auth was growing an unwieldy number of parameters, so I moved it from a functional approach to an object. Also moved _cptools.setargs to Tool._setargs.
Robert Brewer
Overhaul of config system:
Robert Brewer
Made all imports absolute "just in case" for Python 2.5.
Robert Brewer
Removed "filter" from lots of places, including renaming of tests.