Changeset 253


Ignore:
Timestamp:
Dec 14, 2007, 9:13:43 PM (10 years ago)
Author:
quentin
Message:

Allow users to change memory of machines if the machine is blessed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/web/validation.py

    r251 r253  
    3838    returned.
    3939    """
    40     if not on:
    41         return MAX_MEMORY_SINGLE
    4240    if machine is not None and machine.memory > MAX_MEMORY_SINGLE:
    4341        # If they've been blessed, let them have it
    4442        return machine.memory
     43    if not on:
     44        return MAX_MEMORY_SINGLE
    4545    machines = getMachinesByOwner(user, machine)
    4646    active_machines = [x for x in machines if g.uptimes[x]]
Note: See TracChangeset for help on using the changeset viewer.