From: Eric Price Date: Mon, 29 Oct 2007 04:14:12 +0000 (-0400) Subject: Replace 'megabyte' with 'MiB' to please Anders. X-Git-Tag: sipb-xen-www/1~38 X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-web.git/commitdiff_plain/130435f257877a1f8bb82f2b432b45c973e5aefc Replace 'megabyte' with 'MiB' to please Anders. svn path=/trunk/web/; revision=229 --- diff --git a/templates/list.tmpl b/templates/list.tmpl index 95cb96c..d6c0e00 100644 --- a/templates/list.tmpl +++ b/templates/list.tmpl @@ -27,12 +27,12 @@ List of your VMs $errorRow('name', $err) Memory - megabytes ($max_memory max) + MiB ($max_memory max) $errorRow('memory', $err) Disk - gigabytes (${"%0.1f" % ($max_disk-0.05)} max) + GiB (${"%0.1f" % ($max_disk-0.05)} max) $errorRow('disk', $err) diff --git a/templates/validation.py b/templates/validation.py index 0ee8d75..4165aa9 100644 --- a/templates/validation.py +++ b/templates/validation.py @@ -112,7 +112,8 @@ def validMemory(user, memory, machine=None, on=True): "Minimum %s MiB" % MIN_MEMORY_SINGLE) if memory > maxMemory(user, machine, on): raise InvalidInput('memory', memory, - 'Maximum %s MiB' % maxMemory(user, machine)) + 'Maximum %s MiB for %s' % (maxMemory(user, machine), + user)) return memory def validDisk(user, disk, machine=None):