Changeset 2689 for package_branches
- Timestamp:
- Dec 20, 2009, 9:45:34 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
package_branches/invirt-web/cherrypy-rebased/code/main.py
r2687 r2689 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.