import cgi
import datetime
import hmac
-import os
import sha
import simplejson
import sys
on=status,
has_vnc=has_vnc,
machine=machine,
- hostname=os.environ.get('SERVER_NAME', 'localhost'),
+ hostname=state.environ.get('SERVER_NAME', 'localhost'),
authtoken=token)
return templates.vnc(searchList=[d])
self.username = getUser(environ)
self.state = State(self.username)
+ self.state.environ = environ
def __iter__(self):
fields = cgi.FieldStorage(fp=self.environ['wsgi.input'], environ=self.environ)
operation = self.environ.get('PATH_INFO', '')
if not operation:
self.start("301 Moved Permanently", [('Location',
- os.environ['SCRIPT_NAME']+'/')])
+ self.environ['SCRIPT_NAME']+'/')])
return
if self.username is None:
operation = 'unauth'