Changeset 516 for trunk/packages/sipb-xen-www
- Timestamp:
- May 9, 2008, 5:14:13 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/sipb-xen-www/code/main.py
r515 r516 578 578 max_disk = validation.maxDisk(user, machine) 579 579 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(): 581 581 setattr(defaults, name, getattr(machine, name)) 582 defaults.type = machine.type.type_id 582 583 defaults.disk = "%0.2f" % (machine.disks[0].size/1024.) 583 584 checkpoint.checkpoint('Got defaults')
Note: See TracChangeset
for help on using the changeset viewer.