Changeset 516


Ignore:
Timestamp:
May 9, 2008, 5:14:13 PM (17 years ago)
Author:
ecprice
Message:

Default type in info page

File:
1 edited

Legend:

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

    r515 r516  
    578578    max_disk = validation.maxDisk(user, machine)
    579579    defaults = Defaults()
    580     for name in 'machine_id name administrator owner memory contact type'.split():
     580    for name in 'machine_id name administrator owner memory contact'.split():
    581581        setattr(defaults, name, getattr(machine, name))
     582    defaults.type = machine.type.type_id
    582583    defaults.disk = "%0.2f" % (machine.disks[0].size/1024.)
    583584    checkpoint.checkpoint('Got defaults')
Note: See TracChangeset for help on using the changeset viewer.