svn path=/trunk/packages/sipb-xen-www/; revision=446
import sipb_xen_database
from sipb_xen_database import Machine, CDROM, ctx, connect, MachineAccess, Type, Autoinstall
import validation
import sipb_xen_database
from sipb_xen_database import Machine, CDROM, ctx, connect, MachineAccess, Type, Autoinstall
import validation
from webcommon import InvalidInput, CodeError, g
import controls
from webcommon import InvalidInput, CodeError, g
import controls
disk.size = disksize
ctx.current.save(disk)
disk.size = disksize
ctx.current.save(disk)
+ update_acl = False
+ if owner is not None and owner != machine.owner:
if name is not None:
machine.name = name
if name is not None:
machine.name = name
+ if admin is not None and admin != machine.administrator:
machine.administrator = admin
machine.administrator = admin
if contact is not None:
machine.contact = contact
ctx.current.save(machine)
if contact is not None:
machine.contact = contact
ctx.current.save(machine)
+ if update_acl:
+ cache_acls.refreshMachine(machine)
transaction.commit()
except:
transaction.rollback()
transaction.commit()
except:
transaction.rollback()