fix bug that prevented penalty escallation from occurring.
authorStephen Soltesz <soltesz@cs.princeton.edu>
Mon, 23 Feb 2009 22:33:01 +0000 (22:33 +0000)
committerStephen Soltesz <soltesz@cs.princeton.edu>
Mon, 23 Feb 2009 22:33:01 +0000 (22:33 +0000)
plc.py
unified_model.py

diff --git a/plc.py b/plc.py
index f6f8cc3..a41aecb 100644 (file)
--- a/plc.py
+++ b/plc.py
@@ -98,7 +98,7 @@ def getSliceUserEmails(loginbase):
        """
                For the given site, return all user email addresses that have the 'tech' role.
        """
-       #api = getAuthAPI()
+       api = getAuthAPI()
        # get site details.
        s = api.GetSites(loginbase)[0]
        # get people at site
index 86c415b..97b0bb7 100755 (executable)
@@ -567,7 +567,7 @@ class Record(object):
                        contacts += plc.getTechEmails(self.loginbase)
                if PI & roles:
                        #contacts += [PIEMAIL % self.loginbase]
-                       contacts += plc.getSliceUserEmails(self.loginbase)
+                       contacts += plc.getPIEmails(self.loginbase)
                if USER & roles:
                        contacts += plc.getSliceUserEmails(self.loginbase)
                        slices = plc.slices(self.loginbase)