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
Léo-Paul Géneau
slapos.core
Commits
1af36afd
Commit
1af36afd
authored
Aug 18, 2020
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_subscription_request: Apply Contract Invitation to Persons cloud contract
parent
ca579dae
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
master/bt5/slapos_subscription_request/SkinTemplateItem/portal_skins/slapos_subscription_request/SubscriptionRequestModule_requestSubscriptionProxy.py
...est/SubscriptionRequestModule_requestSubscriptionProxy.py
+3
-2
No files found.
master/bt5/slapos_subscription_request/SkinTemplateItem/portal_skins/slapos_subscription_request/SubscriptionRequestModule_requestSubscriptionProxy.py
View file @
1af36afd
...
@@ -5,9 +5,7 @@ if REQUEST is not None:
...
@@ -5,9 +5,7 @@ if REQUEST is not None:
portal
=
context
.
getPortalObject
()
portal
=
context
.
getPortalObject
()
web_site
=
context
.
getWebSiteValue
()
web_site
=
context
.
getWebSiteValue
()
if
token
:
if
token
:
raise
error
=
""
error
=
""
try
:
try
:
invitation_token
=
portal
.
invitation_token_module
[
token
]
invitation_token
=
portal
.
invitation_token_module
[
token
]
...
@@ -49,6 +47,9 @@ if confirmation_required and not person_is_new:
...
@@ -49,6 +47,9 @@ if confirmation_required and not person_is_new:
if
target_language
is
None
:
if
target_language
is
None
:
target_language
=
portal
.
Localizer
.
get_selected_language
()
target_language
=
portal
.
Localizer
.
get_selected_language
()
if
token
:
person
.
Person_applyContractInvitation
(
invitation_token
)
subscription_request
=
context
.
subscription_request_module
.
newContent
(
subscription_request
=
context
.
subscription_request_module
.
newContent
(
portal_type
=
"Subscription Request"
,
portal_type
=
"Subscription Request"
,
destination_section_value
=
person
,
destination_section_value
=
person
,
...
...
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