Changeset 566


Ignore:
Timestamp:
Jun 2, 2008, 2:21:06 PM (16 years ago)
Author:
ecprice
Message:

Use owner's quota on info page, not user's quota.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/sipb-xen-www/code/main.py

    r565 r566  
    391391        memory = fields.getfirst('memory')
    392392        if memory is not None:
    393             memory = validation.validMemory(user, memory, machine, on=False)
     393            memory = validation.validMemory(owner, memory, machine, on=False)
    394394            machine.memory = memory
    395395
     
    398398            machine.type = vm_type
    399399
    400         disksize = validation.testDisk(user, fields.getfirst('disk'))
     400        disksize = validation.testDisk(owner, fields.getfirst('disk'))
    401401        if disksize is not None:
    402             disksize = validation.validDisk(user, disksize, machine)
     402            disksize = validation.validDisk(owner, disksize, machine)
    403403            disk = machine.disks[0]
    404404            if disk.size != disksize:
     
    580580
    581581
    582     max_mem = validation.maxMemory(user, machine, False)
     582    max_mem = validation.maxMemory(machine.owner, machine, False)
    583583    checkpoint.checkpoint('Got mem')
    584     max_disk = validation.maxDisk(user, machine)
     584    max_disk = validation.maxDisk(machine.owner, machine)
    585585    defaults = Defaults()
    586586    for name in 'machine_id name administrator owner memory contact'.split():
Note: See TracChangeset for help on using the changeset viewer.