Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Thomas Gambier
slapos.core
Commits
73e48137
Commit
73e48137
authored
Jul 22, 2020
by
Lu Xu
👀
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_jio: use mapping for "Credential Request Created."
parent
a4fe0594
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
master/bt5/slapos_jio/SkinTemplateItem/portal_skins/slapos_hal_json_style/WebSection_newCredentialRequest.py
.../slapos_hal_json_style/WebSection_newCredentialRequest.py
+4
-3
No files found.
master/bt5/slapos_jio/SkinTemplateItem/portal_skins/slapos_hal_json_style/WebSection_newCredentialRequest.py
View file @
73e48137
...
@@ -42,8 +42,9 @@ credential_request.setCategoryList(category_list)
...
@@ -42,8 +42,9 @@ credential_request.setCategoryList(category_list)
credential_request
.
reindexObject
(
activate_kw
=
dict
(
tag
=
'set_login_%s'
%
reference
.
encode
(
'hex'
)))
credential_request
.
reindexObject
(
activate_kw
=
dict
(
tag
=
'set_login_%s'
%
reference
.
encode
(
'hex'
)))
if
portal_preferences
.
getPreferredCredentialAlarmAutomaticCall
():
if
portal_preferences
.
getPreferredCredentialAlarmAutomaticCall
():
portal_type
=
context
.
Base_translateString
(
"Credential Request"
)
credential_request
.
submit
(
"Automatic submit"
)
credential_request
.
submit
(
"Automatic submit"
)
message_str
=
"Credential Request Created."
message_str
=
context
.
Base_translateString
(
"${portal_type} Created."
,
mapping
=
({
'portal_type'
:
portal_type
}))
else
:
else
:
if
portal_preferences
.
isPreferredEmailVerificationCheck
():
if
portal_preferences
.
isPreferredEmailVerificationCheck
():
# after_path_and_method_id argument is used below to not activate when
# after_path_and_method_id argument is used below to not activate when
...
@@ -61,8 +62,8 @@ else:
...
@@ -61,8 +62,8 @@ else:
else
:
else
:
# no email verification is needed
# no email verification is needed
credential_request
.
submit
(
"Automatic submit"
)
credential_request
.
submit
(
"Automatic submit"
)
message_str
=
"Credential Request Created."
message_str
=
context
.
Base_translateString
(
"${portal_type} Created."
,
mapping
=
({
'portal_type'
:
portal_type
}))
if
batch_mode
:
if
batch_mode
:
return
credential_request
return
credential_request
...
...
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