projects
/
invirt/packages/invirt-web.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Link to help on 'owner' and 'administrator' in list
[invirt/packages/invirt-web.git]
/
code
/
main.py
diff --git
a/code/main.py
b/code/main.py
index
8204fb4
..
c419f32
100755
(executable)
--- a/
code/main.py
+++ b/
code/main.py
@@
-210,6
+210,9
@@
def getListDict(user):
owner=user,
cdrom='gutsy-i386')
checkpoint.checkpoint('Got defaults')
owner=user,
cdrom='gutsy-i386')
checkpoint.checkpoint('Got defaults')
+ def sortkey(machine):
+ return (machine.owner != user, machine.owner, machine.name)
+ machines = sorted(machines, key=sortkey)
d = dict(user=user,
cant_add_vm=validation.cantAddVm(user),
max_memory=max_memory,
d = dict(user=user,
cant_add_vm=validation.cantAddVm(user),
max_memory=max_memory,
@@
-613,7
+616,7
@@
def main(operation, user, fields):
output_string = str(output)
checkpoint.checkpoint('output as a string')
print output_string
output_string = str(output)
checkpoint.checkpoint('output as a string')
print output_string
- print '<pre>%s</pre>' % checkpoint
+ print '<!-- <pre>%s</pre> -->' % checkpoint
except Exception, err:
if not fields.has_key('js'):
if isinstance(err, CodeError):
except Exception, err:
if not fields.has_key('js'):
if isinstance(err, CodeError):