From 9d93e8953885dee5fdd5cc11249bbf0faf5e65cc Mon Sep 17 00:00:00 2001 From: Eric Price Date: Fri, 9 May 2008 17:14:13 -0400 Subject: [PATCH] Default type in info page svn path=/trunk/packages/sipb-xen-www/; revision=516 --- code/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/main.py b/code/main.py index 409433d..e5fdfa9 100755 --- a/code/main.py +++ b/code/main.py @@ -577,8 +577,9 @@ def infoDict(user, machine): checkpoint.checkpoint('Got mem') max_disk = validation.maxDisk(user, machine) defaults = Defaults() - for name in 'machine_id name administrator owner memory contact type'.split(): + for name in 'machine_id name administrator owner memory contact'.split(): setattr(defaults, name, getattr(machine, name)) + defaults.type = machine.type.type_id defaults.disk = "%0.2f" % (machine.disks[0].size/1024.) checkpoint.checkpoint('Got defaults') d = dict(user=user, -- 1.7.9.5