Changeset 879 for trunk/packages/sipb-xen-www/code
- Timestamp:
- Aug 8, 2008, 2:41:38 AM (16 years ago)
- Location:
- trunk/packages/sipb-xen-www/code
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/sipb-xen-www/code/cache_acls.py
r863 r879 1 1 #!/usr/bin/python 2 2 from invirt.database import * 3 from invirt.config import structs as config 3 4 import sys 4 5 import getafsgroups … … 30 31 return [] 31 32 try: 32 return getafsgroups.getAfsGroupMembers(name, 'athena.mit.edu')33 return getafsgroups.getAfsGroupMembers(name, config.authz[0].cell) 33 34 except getafsgroups.AfsProcessError: 34 35 return [] -
trunk/packages/sipb-xen-www/code/controls.py
r863 r879 133 133 if not open_nics: #No IPs left! 134 134 raise CodeError("No IP addresses left! " 135 "Contact xvm@mit.edu.")135 "Contact %s." % config.web.errormail) 136 136 nic = open_nics[0] 137 137 nic.machine_id = machine.machine_id -
trunk/packages/sipb-xen-www/code/main.py
r869 r879 650 650 errorMessage=str(err), stderr=emsg, traceback=traceback) 651 651 details = templates.error_raw(searchList=[d]) 652 if username not in ('price', 'ecprice', 'andersk'): #add yourself at will652 if username not in config.web.errormail_exclude: 653 653 send_error_mail('xvm error on %s for %s: %s' % (op, username, err), 654 654 details) -
trunk/packages/sipb-xen-www/code/validation.py
r874 r879 6 6 import string 7 7 from invirt.database import Machine, NIC, Type, Disk, CDROM, Autoinstall 8 from invirt.config import structs as config 8 9 from webcommon import InvalidInput 9 10 … … 224 225 admin = 'system:' + admin 225 226 try: 226 if user in getafsgroups.getAfsGroupMembers(admin, 'athena.mit.edu'):227 if user in getafsgroups.getAfsGroupMembers(admin, config.authz[0].cell): 227 228 return admin 228 229 except getafsgroups.AfsProcessError, e:
Note: See TracChangeset
for help on using the changeset viewer.