Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Nicolas Wavrant
erp5
Commits
fc3fa3ab
Commit
fc3fa3ab
authored
Feb 22, 2013
by
Vincent Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix html mail sending in password tool.
parent
cd6aed4f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
product/ERP5/Tool/PasswordTool.py
product/ERP5/Tool/PasswordTool.py
+4
-1
No files found.
product/ERP5/Tool/PasswordTool.py
View file @
fc3fa3ab
...
@@ -192,9 +192,11 @@ class PasswordTool(BaseTool):
...
@@ -192,9 +192,11 @@ class PasswordTool(BaseTool):
mapping
=
message_dict
)
mapping
=
message_dict
)
message
=
message
.
translate
()
message
=
message
.
translate
()
event_keyword_argument_dict
=
{}
event_keyword_argument_dict
=
{}
message_text_format
=
'text/plain'
else
:
else
:
message_text_format
=
notification_message
.
getContentType
()
subject
=
notification_message
.
getTitle
()
subject
=
notification_message
.
getTitle
()
if
notification_message
.
getContentType
()
==
"text/html"
:
if
message_text_format
==
"text/html"
:
message
=
notification_message
.
asEntireHTML
(
substitution_method_parameter_dict
=
message_dict
)
message
=
notification_message
.
asEntireHTML
(
substitution_method_parameter_dict
=
message_dict
)
else
:
else
:
message
=
notification_message
.
asText
(
substitution_method_parameter_dict
=
message_dict
)
message
=
notification_message
.
asText
(
substitution_method_parameter_dict
=
message_dict
)
...
@@ -206,6 +208,7 @@ class PasswordTool(BaseTool):
...
@@ -206,6 +208,7 @@ class PasswordTool(BaseTool):
self
.
getPortalObject
().
portal_notifications
.
sendMessage
(
sender
=
sender
,
recipient
=
[
user
,],
self
.
getPortalObject
().
portal_notifications
.
sendMessage
(
sender
=
sender
,
recipient
=
[
user
,],
subject
=
subject
,
message
=
message
,
subject
=
subject
,
message
=
message
,
store_as_event
=
store_as_event
,
store_as_event
=
store_as_event
,
message_text_format
=
message_text_format
,
event_keyword_argument_dict
=
event_keyword_argument_dict
)
event_keyword_argument_dict
=
event_keyword_argument_dict
)
if
REQUEST
is
not
None
:
if
REQUEST
is
not
None
:
msg
=
translateString
(
"An email has been sent to you."
)
msg
=
translateString
(
"An email has been sent to you."
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment