Changeset 2428 for package_branches/invirt-web/cherrypy
- Timestamp:
- Aug 10, 2009, 11:40:27 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
package_branches/invirt-web/cherrypy/code/main.py
r2424 r2428 182 182 return {'request': cherrypy.request, 'kwargs': kwargs} 183 183 helloworld._cp_config['tools.require_login.on'] = False 184 185 @cherrypy.expose 186 def errortest(self): 187 """Throw an error, to test the error-tracing mechanisms.""" 188 raise RuntimeError("test of the emergency broadcast system") 184 189 185 190 class MachineView(View): … … 653 658 return handler(username, newstate, path, fields) 654 659 655 def throwError(_, __, ___, ____):656 """Throw an error, to test the error-tracing mechanisms."""657 raise RuntimeError("test of the emergency broadcast system")658 659 660 mapping = dict( 660 661 modify=modify, 661 662 unauth=unauthFront, 662 663 admin=admin, 663 overlord=admin, 664 errortest=throwError) 664 overlord=admin) 665 665 666 666 def printHeaders(headers):
Note: See TracChangeset
for help on using the changeset viewer.