git://git.onelab.eu
/
plcapi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a4609ca
)
- send notification emails only to pi's that are enabled
author
Tony Mack
<tmack@cs.princeton.edu>
Fri, 23 Feb 2007 17:48:02 +0000
(17:48 +0000)
committer
Tony Mack
<tmack@cs.princeton.edu>
Fri, 23 Feb 2007 17:48:02 +0000
(17:48 +0000)
PLC/Methods/VerifyPerson.py
patch
|
blob
|
history
diff --git
a/PLC/Methods/VerifyPerson.py
b/PLC/Methods/VerifyPerson.py
index
f4f3263
..
3f1591a
100644
(file)
--- a/
PLC/Methods/VerifyPerson.py
+++ b/
PLC/Methods/VerifyPerson.py
@@
-105,7
+105,7
@@
class VerifyPerson(Method):
for site in person_sites:
person_ids.update(site['person_ids'])
persons = Persons(self.api, person_ids)
- pis = filter(lambda person: 'pi' in person['roles'], persons)
+ pis = filter(lambda person: 'pi' in person['roles']
and person['enabled']
, persons)
# Send e-mail to PI(s) and copy the user
To = [("%s %s" % (pi['first_name'], pi['last_name']), pi['email']) for pi in pis]