from sipb_xen_database import Machine, CDROM, ctx, connect, MachineAccess, Type, Autoinstall
import validation
import cache_acls
-from webcommon import InvalidInput, CodeError, state
+from webcommon import InvalidInput, CodeError, State
import controls
class Checkpoint:
logging.getLogger('sqlalchemy.orm.unitofwork').setLevel(logging.INFO)
username = getUser(os.environ)
- state.username = username
+ state = State(username)
operation = os.environ.get('PATH_INFO', '')
if not operation:
print "Status: 301 Moved Permanently"