Changeset 566 for trunk/packages/sipb-xen-www
- Timestamp:
- Jun 2, 2008, 2:21:06 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/sipb-xen-www/code/main.py
r565 r566 391 391 memory = fields.getfirst('memory') 392 392 if memory is not None: 393 memory = validation.validMemory( user, memory, machine, on=False)393 memory = validation.validMemory(owner, memory, machine, on=False) 394 394 machine.memory = memory 395 395 … … 398 398 machine.type = vm_type 399 399 400 disksize = validation.testDisk( user, fields.getfirst('disk'))400 disksize = validation.testDisk(owner, fields.getfirst('disk')) 401 401 if disksize is not None: 402 disksize = validation.validDisk( user, disksize, machine)402 disksize = validation.validDisk(owner, disksize, machine) 403 403 disk = machine.disks[0] 404 404 if disk.size != disksize: … … 580 580 581 581 582 max_mem = validation.maxMemory( user, machine, False)582 max_mem = validation.maxMemory(machine.owner, machine, False) 583 583 checkpoint.checkpoint('Got mem') 584 max_disk = validation.maxDisk( user, machine)584 max_disk = validation.maxDisk(machine.owner, machine) 585 585 defaults = Defaults() 586 586 for name in 'machine_id name administrator owner memory contact'.split():
Note: See TracChangeset
for help on using the changeset viewer.