From: Peter Iannucci Date: Tue, 5 Oct 2010 00:55:13 +0000 (-0400) Subject: Adds support for conditionally disabling VM creation. X-Git-Tag: 0.1.10~1 X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-web.git/commitdiff_plain/754c1c8b18cf49c42cb4eb704642466d2d1f4279 Adds support for conditionally disabling VM creation. --- diff --git a/code/main.py b/code/main.py index f2ee6d1..f754ca0 100755 --- a/code/main.py +++ b/code/main.py @@ -459,7 +459,8 @@ def getListDict(username, state): defaults=defaults, machines=machines, has_vnc=has_vnc, - installing=installing) + installing=installing, + disable_creation=True) return d def getHostname(nic): diff --git a/code/templates/list.mako b/code/templates/list.mako index d71792a..3d0c50c 100644 --- a/code/templates/list.mako +++ b/code/templates/list.mako @@ -81,7 +81,15 @@ ${self.fn.cdromList(defaults.cdrom, "$('cd_or_auto_cd').checked = true;$('autoin ${self.fn.errorRow('owner', err)} -
+ \ +% if disable_creation: + VM creation is currently disabled due to lack of disk space. \ +%endif +
Windows notes: ${self.fn.helppopup('Windows')} % endif diff --git a/debian/changelog b/debian/changelog index e416f92..4e22229 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +invirt-web (0.1.9) unstable; urgency=low + + * Adds support for disabling (conditionally) VM creation in list.mako, main.py + + -- Peter A. Iannucci Mon, 04 Oct 2010 20:54:10 -0400 + invirt-web (0.1.8) lucid; urgency=low [ Andrew M. Farrell ]