return templates.list(searchList=[d])
elif back == 'info':
machine = validation.Validate(username, state, machine_id=fields.getfirst('machine_id')).machine
return templates.list(searchList=[d])
elif back == 'info':
machine = validation.Validate(username, state, machine_id=fields.getfirst('machine_id')).machine
'Location': '/info?machine_id=%d' % machine.machine_id},
"You shouldn't see this message.")
else:
'Location': '/info?machine_id=%d' % machine.machine_id},
"You shouldn't see this message.")
else:
machine.owner = validate.owner
update_acl = True
if hasattr(validate, 'name'):
machine.owner = validate.owner
update_acl = True
if hasattr(validate, 'name'):
if hasattr(validate, 'admin') and validate.admin != machine.administrator:
machine.administrator = validate.admin
update_acl = True
if hasattr(validate, 'admin') and validate.admin != machine.administrator:
machine.administrator = validate.admin
update_acl = True
- self.start('200 OK', headers.items())
+ status = headers.setdefault('Status', '200 OK')
+ del headers['Status']
+ self.start(status, headers.items())