Index: /trunk/packages/sipb-xen-www/code/cache_acls.py
===================================================================
--- /trunk/packages/sipb-xen-www/code/cache_acls.py	(revision 878)
+++ /trunk/packages/sipb-xen-www/code/cache_acls.py	(revision 879)
@@ -1,4 +1,5 @@
 #!/usr/bin/python
 from invirt.database import *
+from invirt.config import structs as config
 import sys
 import getafsgroups
@@ -30,5 +31,5 @@
         return []
     try:
-        return getafsgroups.getAfsGroupMembers(name, 'athena.mit.edu')
+        return getafsgroups.getAfsGroupMembers(name, config.authz[0].cell)
     except getafsgroups.AfsProcessError:
         return []
Index: /trunk/packages/sipb-xen-www/code/controls.py
===================================================================
--- /trunk/packages/sipb-xen-www/code/controls.py	(revision 878)
+++ /trunk/packages/sipb-xen-www/code/controls.py	(revision 879)
@@ -133,5 +133,5 @@
         if not open_nics: #No IPs left!
             raise CodeError("No IP addresses left!  "
-                            "Contact xvm@mit.edu.")
+                            "Contact %s." % config.web.errormail)
         nic = open_nics[0]
         nic.machine_id = machine.machine_id
Index: /trunk/packages/sipb-xen-www/code/main.py
===================================================================
--- /trunk/packages/sipb-xen-www/code/main.py	(revision 878)
+++ /trunk/packages/sipb-xen-www/code/main.py	(revision 879)
@@ -650,5 +650,5 @@
              errorMessage=str(err), stderr=emsg, traceback=traceback)
     details = templates.error_raw(searchList=[d])
-    if username not in ('price', 'ecprice', 'andersk'): #add yourself at will
+    if username not in config.web.errormail_exclude:
         send_error_mail('xvm error on %s for %s: %s' % (op, username, err),
                         details)
Index: /trunk/packages/sipb-xen-www/code/validation.py
===================================================================
--- /trunk/packages/sipb-xen-www/code/validation.py	(revision 878)
+++ /trunk/packages/sipb-xen-www/code/validation.py	(revision 879)
@@ -6,4 +6,5 @@
 import string
 from invirt.database import Machine, NIC, Type, Disk, CDROM, Autoinstall
+from invirt.config import structs as config
 from webcommon import InvalidInput
 
@@ -224,5 +225,5 @@
         admin = 'system:' + admin
     try:
-        if user in getafsgroups.getAfsGroupMembers(admin, 'athena.mit.edu'):
+        if user in getafsgroups.getAfsGroupMembers(admin, config.authz[0].cell):
             return admin
     except getafsgroups.AfsProcessError, e:
Index: /trunk/packages/sipb-xen-www/config.todo
===================================================================
--- /trunk/packages/sipb-xen-www/config.todo	(revision 878)
+++ /trunk/packages/sipb-xen-www/config.todo	(revision 879)
@@ -11,8 +11,4 @@
 files/etc/apache2/sites-available/svn: svn repo path
 files/etc/init.d/apache2.invirt: afs cell (for svn?)
-code/cache_acls.py: afs cell for authz
-code/controls.py: xvm@mit.edu
-code/main.py: error-mail blacklist: price, etc
-code/validation.py: afs cell for authz
 code/templates/error.tmpl: xvm@mit.edu
 code/templates/help.tmpl: assumes trac
Index: /trunk/packages/sipb-xen-www/debian/changelog
===================================================================
--- /trunk/packages/sipb-xen-www/debian/changelog	(revision 878)
+++ /trunk/packages/sipb-xen-www/debian/changelog	(revision 879)
@@ -1,2 +1,14 @@
+sipb-xen-www (3.9) unstable; urgency=low
+
+  * further integration of invirt.config
+
+ -- Yang Zhang <y_z@mit.edu>  Fri,  8 Aug 2008 02:39:15 -0400
+
+sipb-xen-www (3.8) unstable; urgency=low
+
+  * sipb_xen_database -> invirt.database in cache_acls.py
+
+ -- Yang Zhang <y_z@mit.edu>  Sun,  3 Aug 2008 19:45:19 -0400
+
 sipb-xen-www (3.7) unstable; urgency=low
 
