Index: /trunk/packages/sipb-xen-www/code/main.py
===================================================================
--- /trunk/packages/sipb-xen-www/code/main.py	(revision 565)
+++ /trunk/packages/sipb-xen-www/code/main.py	(revision 566)
@@ -391,5 +391,5 @@
         memory = fields.getfirst('memory')
         if memory is not None:
-            memory = validation.validMemory(user, memory, machine, on=False)
+            memory = validation.validMemory(owner, memory, machine, on=False)
             machine.memory = memory
 
@@ -398,7 +398,7 @@
             machine.type = vm_type
 
-        disksize = validation.testDisk(user, fields.getfirst('disk'))
+        disksize = validation.testDisk(owner, fields.getfirst('disk'))
         if disksize is not None:
-            disksize = validation.validDisk(user, disksize, machine)
+            disksize = validation.validDisk(owner, disksize, machine)
             disk = machine.disks[0]
             if disk.size != disksize:
@@ -580,7 +580,7 @@
 
 
-    max_mem = validation.maxMemory(user, machine, False)
+    max_mem = validation.maxMemory(machine.owner, machine, False)
     checkpoint.checkpoint('Got mem')
-    max_disk = validation.maxDisk(user, machine)
+    max_disk = validation.maxDisk(machine.owner, machine)
     defaults = Defaults()
     for name in 'machine_id name administrator owner memory contact'.split():
