- Timestamp:
- Dec 21, 2009, 1:11:26 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
package_branches/invirt-web/ajaxterm-rebased/code/main.py
r2737 r2751 38 38 39 39 from view import View, revertStandardError 40 import ajaxterm 40 41 41 42 … … 388 389 else: 389 390 raise InvalidInput('back', back, 'Not a known back page.') 391 392 atmulti = ajaxterm.Multiplex() 393 atsessions = {} 394 395 @cherrypy.expose 396 @cherrypy.tools.mako(filename="/terminal.mako") 397 def terminal(self, machine_id): 398 machine = validation.Validate(cherrypy.request.login, cherrypy.request.state, machine_id=machine_id).machine 399 400 status = controls.statusInfo(machine) 401 has_vnc = hasVnc(status) 402 403 d = dict(on=status, 404 has_vnc=has_vnc, 405 machine=machine, 406 hostname=cherrypy.request.local.name) 407 return d 390 408 391 409 machine = MachineView()
Note: See TracChangeset
for help on using the changeset viewer.