Changeset 2764
- Timestamp:
- Dec 21, 2009, 1:12:15 AM (15 years ago)
- Location:
- package_branches/invirt-web/ajaxterm-rebased/code
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
package_branches/invirt-web/ajaxterm-rebased/code/ajaxterm.py
r2762 r2764 389 389 env["TERM"]="linux" 390 390 env["PATH"]=os.environ['PATH'] 391 if 'KRB5CCNAME' in os.environ: 392 env["KRB5CCNAME"]=os.environ['KRB5CCNAME'] 391 393 os.execvpe(cmd[0],cmd,env) 392 394 else: -
package_branches/invirt-web/ajaxterm-rebased/code/main.py
r2761 r2764 39 39 from invirt.config import structs as config 40 40 from invirt.common import InvalidInput, CodeError 41 import invirt.remctl 41 42 42 43 from view import View, revertStandardError … … 421 422 else: 422 423 print >>sys.stderr, "spawning new session for terminal to ",machine_id 424 invirt.remctl.checkKinit(principal='daemon/'+config.web.hostname) 423 425 term = self.atmulti.create( 424 426 ["ssh", "-e","none", "-l", machine.name, config.console.hostname] … … 437 439 return dump 438 440 else: 439 print "Removing session for", machine_id 441 print "Removing session for", machine_id,"because we received",repr(dump) 440 442 del self.atsessions[machine_id] 441 443 return '<?xml version="1.0"?><idem></idem>'
Note: See TracChangeset
for help on using the changeset viewer.