git://git.onelab.eu
/
plcapi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
remove PLC.Debug.log, use PLC.Logger.logger instead
[plcapi.git]
/
PLC
/
Methods
/
ResetPassword.py
diff --git
a/PLC/Methods/ResetPassword.py
b/PLC/Methods/ResetPassword.py
index
967f21f
..
8e9da53
100644
(file)
--- a/
PLC/Methods/ResetPassword.py
+++ b/
PLC/Methods/ResetPassword.py
@@
-5,7
+5,7
@@
import urllib
from types import StringTypes
from types import StringTypes
-from PLC.
Debug import log
+from PLC.
Logger import logger
from PLC.Faults import *
from PLC.Method import Method
from PLC.Parameter import Parameter, Mixed
from PLC.Faults import *
from PLC.Method import Method
from PLC.Parameter import Parameter, Mixed
@@
-119,7
+119,7
@@
class ResetPassword(Method):
Subject = message['subject'] % params,
Body = message['template'] % params)
else:
Subject = message['subject'] % params,
Body = message['template'] % params)
else:
- print >> log, "Warning: No message template '%s'" % message_id
+ logger.warning("No message template '%s'" % message_id)
# Logging variables
self.event_objects = {'Person': [person['person_id']]}
# Logging variables
self.event_objects = {'Person': [person['person_id']]}