Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
R
red-ci-cd
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
red-group-test
red-ci-cd
Commits
bb1f5397
Commit
bb1f5397
authored
Jan 17, 2020
by
John Red Medrano
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #674 in RMS/api-main-service from red-develop to product-dev
* commit '
25e2e2f2
': fixing
parents
bc439ea3
25e2e2f2
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
app/applicationlayer/cms/cms_settings/views.py
app/applicationlayer/cms/cms_settings/views.py
+4
-4
app/helper/email_service/sender.py
app/helper/email_service/sender.py
+1
-1
app/helper/email_service/templates/RMS-ONBEHALF.html
app/helper/email_service/templates/RMS-ONBEHALF.html
+1
-1
No files found.
app/applicationlayer/cms/cms_settings/views.py
View file @
bb1f5397
...
...
@@ -86,9 +86,9 @@ class CMSSettingsViewSet(viewsets.ModelViewSet):
active_user
=
self
.
request
.
user
.
name
admin
=
request
.
user
.
email
linking
_verb
=
'as'
linking
=
'as'
args
=
[
behalf_name
,
'Removed'
,
active_user
,
behalf_email
,
admin
,
linking
_verb
]
args
=
[
behalf_name
,
'Removed'
,
active_user
,
behalf_email
,
admin
,
linking
]
main_threading
(
args
,
sender
.
on_behalf
)
return
Response
(
status
=
status
.
HTTP_204_NO_CONTENT
)
...
...
@@ -117,14 +117,14 @@ class CMSSettingsViewSet(viewsets.ModelViewSet):
active_user
=
self
.
request
.
user
.
name
action
=
'Added'
admin
=
request
.
user
.
email
linking
_verb
=
'on'
linking
=
'on'
for
data
in
data_cms_settings
:
recipient
=
User
.
objects
.
get
(
code
=
str
(
data
[
'behalf_user'
])
)
args
=
[
recipient
.
name
,
action
,
active_user
,
recipient
.
email
,
admin
,
linking
_verb
]
args
=
[
recipient
.
name
,
action
,
active_user
,
recipient
.
email
,
admin
,
linking
]
main_threading
(
args
,
sender
.
on_behalf
)
if
serializer
.
is_valid
(
raise_exception
=
True
):
...
...
app/helper/email_service/sender.py
View file @
bb1f5397
...
...
@@ -606,7 +606,7 @@ def on_behalf(args):
recipient
=
args
[
3
]
admin
=
args
[
4
]
linking
_verb
=
args
[
5
]
linking
=
args
[
5
]
print
(
args
)
F
=
open
(
os
.
path
.
join
(
settings
.
EMAIL_TEMPLATES_ROOT
,
'RMS-ONBEHALF.html'
),
'r'
)
...
...
app/helper/email_service/templates/RMS-ONBEHALF.html
View file @
bb1f5397
...
...
@@ -9,7 +9,7 @@
<h3
style=
"color:#888888;"
>
{action} on Behalf
</h3><br>
<p>
Dear {name},
</p><br>
<p>
Please be informed that {active_user} {action} you {linking
_verb
} their behalf for change requests under Actions on Behalf.
</p><br>
<p>
Please be informed that {active_user} {action} you {linking} their behalf for change requests under Actions on Behalf.
</p><br>
<!-- <p>Please be informed that {active_user} {action} you as on behalf user for change request. </p><br> -->
<p>
Sincerely,
</p>
...
...
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