from Cheetah.Template import Template
import validation
import cache_acls
-from webcommon import InvalidInput, CodeError, State
+from webcommon import State
import controls
from getafsgroups import getAfsGroupMembers
from invirt import database
from invirt.database import Machine, CDROM, session, connect, MachineAccess, Type, Autoinstall
from invirt.config import structs as config
+from invirt.common import InvalidInput, CodeError
def pathSplit(path):
if path.startswith('/'):
"""
machine = validation.Validate(username, state, machine_id=fields.getfirst('machine_id')).machine
- token = remctl('control', machine.name, 'vnctoken')
+ token = controls.remctl('control', machine.name, 'vnctoken').strip()
host = controls.listHost(machine)
if host:
port = 10003 + [h.hostname for h in config.hosts].index(host)