Changeset 2411 for package_branches/invirt-web/cherrypy/code
- Timestamp:
- Aug 9, 2009, 6:45:35 PM (15 years ago)
- Location:
- package_branches/invirt-web/cherrypy/code
- Files:
-
- 1 added
- 1 deleted
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
package_branches/invirt-web/cherrypy/code/main.py
r2410 r2411 66 66 return d 67 67 index=list 68 69 @cherrypy.expose 70 @cherrypy.tools.mako(filename="/info.mako") 71 def info(self, machine_id): 72 """Handler for info on a single VM.""" 73 machine = validation.Validate(cherrypy.request.login, cherrypy.request.state, machine_id=machine_id).machine 74 d = infoDict(cherrypy.request.login, cherrypy.request.state, machine) 75 checkpoint.checkpoint('Got infodict') 76 return d 68 77 69 78 @cherrypy.expose … … 606 615 return d 607 616 608 def info(username, state, path, fields):609 """Handler for info on a single VM."""610 machine = validation.Validate(username, state, machine_id=fields.getfirst('machine_id')).machine611 d = infoDict(username, state, machine)612 checkpoint.checkpoint('Got infodict')613 return templates.info(searchList=[d])614 615 617 def unauthFront(_, _2, _3, fields): 616 618 """Information for unauth'd users.""" … … 637 639 command=command, 638 640 modify=modify, 639 info=info,640 641 create=create, 641 642 unauth=unauthFront,
Note: See TracChangeset
for help on using the changeset viewer.