- Timestamp:
- Aug 8, 2008, 2:41:38 AM (16 years ago)
- Location:
- trunk/packages/sipb-xen-www
- Files:
-
- 6 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: -
trunk/packages/sipb-xen-www/config.todo
r877 r879 11 11 files/etc/apache2/sites-available/svn: svn repo path 12 12 files/etc/init.d/apache2.invirt: afs cell (for svn?) 13 code/cache_acls.py: afs cell for authz14 code/controls.py: xvm@mit.edu15 code/main.py: error-mail blacklist: price, etc16 code/validation.py: afs cell for authz17 13 code/templates/error.tmpl: xvm@mit.edu 18 14 code/templates/help.tmpl: assumes trac -
trunk/packages/sipb-xen-www/debian/changelog
r854 r879 1 sipb-xen-www (3.9) unstable; urgency=low 2 3 * further integration of invirt.config 4 5 -- Yang Zhang <y_z@mit.edu> Fri, 8 Aug 2008 02:39:15 -0400 6 7 sipb-xen-www (3.8) unstable; urgency=low 8 9 * sipb_xen_database -> invirt.database in cache_acls.py 10 11 -- Yang Zhang <y_z@mit.edu> Sun, 3 Aug 2008 19:45:19 -0400 12 1 13 sipb-xen-www (3.7) unstable; urgency=low 2 14
Note: See TracChangeset
for help on using the changeset viewer.