Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
converse.js
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
converse.js
Commits
d7ab37df
Commit
d7ab37df
authored
Jan 14, 2013
by
Michal Čihař
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Comments are sent with real sender (issue #160)
parent
ad66f6ec
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
weblate/accounts/models.py
weblate/accounts/models.py
+4
-3
weblate/trans/views.py
weblate/trans/views.py
+2
-1
No files found.
weblate/accounts/models.py
View file @
d7ab37df
...
...
@@ -46,7 +46,7 @@ import logging
logger
=
logging
.
getLogger
(
'weblate'
)
def
send_notification_email
(
language
,
email
,
notification
,
translation_obj
,
context
=
{},
headers
=
{}):
def
send_notification_email
(
language
,
email
,
notification
,
translation_obj
,
context
=
{},
headers
=
{}
,
from_email
=
None
):
'''
Renders and sends notification email.
'''
...
...
@@ -90,8 +90,9 @@ def send_notification_email(language, email, notification, translation_obj, cont
email
=
EmailMessage
(
settings
.
EMAIL_SUBJECT_PREFIX
+
subject
.
strip
(),
body
,
to
=
[
email
],
headers
=
headers
to
=
[
email
],
headers
=
headers
,
from_email
=
from_email
,
)
# Send it out
...
...
weblate/trans/views.py
View file @
d7ab37df
...
...
@@ -1580,7 +1580,8 @@ def comment(request, pk):
'unit'
:
obj
,
'comment'
:
new_comment
,
'subproject'
:
obj
.
translation
.
subproject
,
}
},
from_email
=
request
.
user
.
email
,
)
else
:
messages
.
error
(
request
,
_
(
'Failed to add comment!'
))
...
...
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