svn path=/trunk/packages/sipb-xen-www/; revision=578
from sipb_xen_database import Machine, CDROM, ctx, connect, MachineAccess, Type, Autoinstall
import validation
import cache_acls
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:
import controls
class Checkpoint:
logging.getLogger('sqlalchemy.orm.unitofwork').setLevel(logging.INFO)
username = getUser(os.environ)
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"
operation = os.environ.get('PATH_INFO', '')
if not operation:
print "Status: 301 Moved Permanently"
for attr in list(self.__dict__):
if attr.startswith('__cache_'):
delattr(self, attr)
for attr in list(self.__dict__):
if attr.startswith('__cache_'):
delattr(self, attr)