Changeset 2432 for package_branches/invirt-web/cherrypy/code/main.py
- Timestamp:
- Aug 11, 2009, 12:54:08 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
package_branches/invirt-web/cherrypy/code/main.py
r2428 r2432 47 47 48 48 from view import View 49 import ajaxterm 49 50 50 51 class InvirtWeb(View): … … 278 279 else: 279 280 raise InvalidInput('back', back, 'Not a known back page.') 281 282 atmulti = ajaxterm.Multiplex() 283 atsessions = {} 284 285 @cherrypy.expose 286 @cherrypy.tools.mako(filename="/terminal.mako") 287 def terminal(self, machine_id): 288 machine = validation.Validate(cherrypy.request.login, cherrypy.request.state, machine_id=machine_id).machine 289 290 status = controls.statusInfo(machine) 291 has_vnc = hasVnc(status) 292 293 d = dict(on=status, 294 has_vnc=has_vnc, 295 machine=machine, 296 hostname=cherrypy.request.local.name) 297 return d 280 298 281 299 machine = MachineView()
Note: See TracChangeset
for help on using the changeset viewer.