Changeset 138 for trunk/web/templates/main.py
- Timestamp:
- Oct 8, 2007, 2:56:01 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/web/templates/main.py
r136 r138 42 42 43 43 def haveAccess(user, machine): 44 if user.username == ' quentin':44 if user.username == 'moo': 45 45 return True 46 46 return machine.owner == user.username … … 277 277 on = uptimes 278 278 for m in machines: 279 if on.get(m.name) and m.type.hvm: 279 if not on.get(m.name): 280 has_vnc[m.name] = 'Off' 281 elif m.type.hvm: 280 282 has_vnc[m.name] = True 281 283 else: 282 has_vnc[m.name] = False 284 help_name = 'paravm_console' 285 has_vnc[m.name] = 'ParaVM <span class="helplink"><a href="help?subject=%s&simple=true" target="_blank" onclick="return helppopup(\'%s\')">(?)</a></span>' % (help_name, help_name) 283 286 # for m in machines: 284 287 # status = statusInfo(m)
Note: See TracChangeset
for help on using the changeset viewer.