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:
57fc659
)
fix typo. When sending email notification, use values from plc_config instead of...
author
Tony Mack
<tmack@cs.princeton.edu>
Mon, 6 Oct 2008 18:12:29 +0000
(18:12 +0000)
committer
Tony Mack
<tmack@cs.princeton.edu>
Mon, 6 Oct 2008 18:12:29 +0000
(18:12 +0000)
PLC/Methods/UpdatePerson.py
patch
|
blob
|
history
diff --git
a/PLC/Methods/UpdatePerson.py
b/PLC/Methods/UpdatePerson.py
index
61b8e26
..
2043604
100644
(file)
--- a/
PLC/Methods/UpdatePerson.py
+++ b/
PLC/Methods/UpdatePerson.py
@@
-68,11
+68,11
@@
class UpdatePerson(Method):
To = [("%s %s" % (person['first_name'], person['last_name']), person['email'])]
Cc = []
if person['enabled']:
To = [("%s %s" % (person['first_name'], person['last_name']), person['email'])]
Cc = []
if person['enabled']:
- Subject = "
PlanetLab account enabled"
- Body = "Your
PlanetLab account has been enabled. You should now be allowd to access you account"
+ Subject = "
%s account enabled" % (self.api.config.PLC_NAME)
+ Body = "Your
%s account has been enabled. Please visit %s to access your account." % (self.api.config.PLC_NAME, self.api.config.PLC_WWW_HOST)
else:
else:
- Subject = "
PlanetLab account disabled"
- Body = "Your
PlanetLab account has been disabled. Please contact your PI or PlanetLab support for more information"
+ Subject = "
%s account disabled" % (self.api.config.PLC_NAME)
+ Body = "Your
%s account has been disabled. Please contact your PI or PlanetLab support for more information" % (self.api.config.PLC_NAME)
sendmail(self.api, To = To, Cc = Cc, Subject = Subject, Body = Body)
sendmail(self.api, To = To, Cc = Cc, Subject = Subject, Body = Body)