Changeset 667 for trunk/packages
- Timestamp:
- Jul 7, 2008, 10:40:33 PM (16 years ago)
- Location:
- trunk/packages/sipb-xen-www/code
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/sipb-xen-www/code/main.py
r662 r667 256 256 token = cPickle.dumps(token) 257 257 token = base64.urlsafe_b64encode(token) 258 if controls.listHost(machine) == 'sx-blade-2.mit.edu': 259 port = 10004 260 else: 261 port = 10003 258 262 259 263 status = controls.statusInfo(machine) … … 265 269 machine=machine, 266 270 hostname=state.environ.get('SERVER_NAME', 'localhost'), 271 port=port, 267 272 authtoken=token) 268 273 return templates.vnc(searchList=[d]) -
trunk/packages/sipb-xen-www/code/templates/vnc.tmpl
r539 r667 17 17 WIDTH="100%" HEIGHT="1000"> 18 18 <PARAM NAME="PASSWORD" VALUE="moocow"> 19 <PARAM NAME="PORT" VALUE=" 10003">19 <PARAM NAME="PORT" VALUE="$port"> 20 20 <PARAM NAME="HOST" VALUE="$hostname"> 21 21 <PARAM NAME="VMNAME" VALUE="$machine.name">
Note: See TracChangeset
for help on using the changeset viewer.