- Timestamp:
- Dec 20, 2009, 9:45:18 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
package_branches/invirt-web/cherrypy-rebased/code/view.py
r2673 r2685 83 83 cherrypy.tools.require_login = cherrypy.Tool('on_start_resource', require_login, priority=150) 84 84 85 def require_POST(): 86 """If the request isn't a POST request, raise 405 Method Not Allowed""" 87 if cherrypy.request.method != "POST": 88 raise cherrypy.HTTPError(405, 89 "You must submit this request with POST") 90 91 cherrypy.tools.require_POST = cherrypy.Tool('on_start_resource', require_POST, priority=150) 92 85 93 def remote_user_login(): 86 94 """Get the current user based on the SSL or GSSAPI environment variables"""
Note: See TracChangeset
for help on using the changeset viewer.