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
Labels
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Rafael Monnerat
slapos.core
Commits
e204aa3c
Commit
e204aa3c
authored
Nov 25, 2021
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_cloud: Update Workflow
parent
6c147857
Pipeline
#18495
failed with stage
in 0 seconds
Changes
7
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
97 additions
and
6 deletions
+97
-6
master/bt5/slapos_cloud/WorkflowTemplateItem/portal_workflow/project_slap_interface_workflow/script_Project_generateInvitation.py
...p_interface_workflow/script_Project_generateInvitation.py
+0
-0
master/bt5/slapos_cloud/WorkflowTemplateItem/portal_workflow/project_slap_interface_workflow/script_Project_generateInvitation.xml
..._interface_workflow/script_Project_generateInvitation.xml
+78
-0
master/bt5/slapos_cloud/WorkflowTemplateItem/portal_workflow/project_slap_interface_workflow/script_Project_leaveProject.py
...ct_slap_interface_workflow/script_Project_leaveProject.py
+13
-0
master/bt5/slapos_cloud/WorkflowTemplateItem/portal_workflow/project_slap_interface_workflow/script_Project_leaveProject.xml
...t_slap_interface_workflow/script_Project_leaveProject.xml
+1
-1
master/bt5/slapos_cloud/WorkflowTemplateItem/portal_workflow/project_slap_interface_workflow/state_draft.xml
..._workflow/project_slap_interface_workflow/state_draft.xml
+1
-1
master/bt5/slapos_cloud/WorkflowTemplateItem/portal_workflow/project_slap_interface_workflow/transition_approve_registration.xml
...ap_interface_workflow/transition_approve_registration.xml
+1
-1
master/bt5/slapos_cloud/WorkflowTemplateItem/portal_workflow/project_slap_interface_workflow/transition_leave_project.xml
...ject_slap_interface_workflow/transition_leave_project.xml
+3
-3
No files found.
master/bt5/slapos_cloud/WorkflowTemplateItem/portal_workflow/project_slap_interface_workflow/script_Project_
requestToke
n.py
→
master/bt5/slapos_cloud/WorkflowTemplateItem/portal_workflow/project_slap_interface_workflow/script_Project_
generateInvitatio
n.py
View file @
e204aa3c
File moved
master/bt5/slapos_cloud/WorkflowTemplateItem/portal_workflow/project_slap_interface_workflow/script_Project_generateInvitation.xml
0 → 100644
View file @
e204aa3c
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Workflow Script"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
Script_magic
</string>
</key>
<value>
<int>
3
</int>
</value>
</item>
<item>
<key>
<string>
_bind_names
</string>
</key>
<value>
<object>
<klass>
<global
name=
"NameAssignments"
module=
"Shared.DC.Scripts.Bindings"
/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key>
<string>
_asgns
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
name_container
</string>
</key>
<value>
<string>
container
</string>
</value>
</item>
<item>
<key>
<string>
name_context
</string>
</key>
<value>
<string>
context
</string>
</value>
</item>
<item>
<key>
<string>
name_m_self
</string>
</key>
<value>
<string>
script
</string>
</value>
</item>
<item>
<key>
<string>
name_subpath
</string>
</key>
<value>
<string>
traverse_subpath
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key>
<string>
_params
</string>
</key>
<value>
<string>
state_change
</string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
script_Project_generateInvitation
</string>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Workflow Script
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<none/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
master/bt5/slapos_cloud/WorkflowTemplateItem/portal_workflow/project_slap_interface_workflow/script_Project_leaveProject.py
0 → 100644
View file @
e204aa3c
from
zExceptions
import
Unauthorized
project
=
state_change
[
'object'
]
portal
=
person
.
getPortalObject
()
person
=
portal
.
portal_membership
.
getAuthenticatedMember
().
getUserValue
()
if
person
is
None
:
raise
Unauthorized
for
assignment
in
person
.
objectValues
(
portal_type
=
"Assignment"
):
if
assignment
.
getDestinationProject
()
==
context
.
getRelativeUrl
():
assignment
.
close
()
break
master/bt5/slapos_cloud/WorkflowTemplateItem/portal_workflow/project_slap_interface_workflow/script_Project_
requestToken
.xml
→
master/bt5/slapos_cloud/WorkflowTemplateItem/portal_workflow/project_slap_interface_workflow/script_Project_
leaveProject
.xml
View file @
e204aa3c
...
...
@@ -60,7 +60,7 @@
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
script_Project_
requestToken
</string>
</value>
<value>
<string>
script_Project_
leaveProject
</string>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
...
...
master/bt5/slapos_cloud/WorkflowTemplateItem/portal_workflow/project_slap_interface_workflow/state_draft.xml
View file @
e204aa3c
...
...
@@ -18,7 +18,7 @@
<tuple>
<string>
destination/portal_workflow/project_slap_interface_workflow/transition_accept_invitation
</string>
<string>
destination/portal_workflow/project_slap_interface_workflow/transition_approve_registration
</string>
<string>
destination/portal_workflow/project_slap_interface_workflow/transition_
request_token
</string>
<string>
destination/portal_workflow/project_slap_interface_workflow/transition_
leave_project
</string>
</tuple>
</value>
</item>
...
...
master/bt5/slapos_cloud/WorkflowTemplateItem/portal_workflow/project_slap_interface_workflow/transition_approve_registration.xml
View file @
e204aa3c
...
...
@@ -24,7 +24,7 @@
<tuple>
<string>
action_type/workflow
</string>
<string>
before_script/portal_workflow/project_slap_interface_workflow/script_Project_checkConsistency
</string>
<string>
after_script/portal_workflow/project_slap_interface_workflow/script_Project_
requestToke
n
</string>
<string>
after_script/portal_workflow/project_slap_interface_workflow/script_Project_
approveRegistratio
n
</string>
</tuple>
</value>
</item>
...
...
master/bt5/slapos_cloud/WorkflowTemplateItem/portal_workflow/project_slap_interface_workflow/transition_
request_token
.xml
→
master/bt5/slapos_cloud/WorkflowTemplateItem/portal_workflow/project_slap_interface_workflow/transition_
leave_project
.xml
View file @
e204aa3c
...
...
@@ -24,7 +24,7 @@
<tuple>
<string>
action_type/workflow
</string>
<string>
before_script/portal_workflow/project_slap_interface_workflow/script_Project_checkConsistency
</string>
<string>
after_script/portal_workflow/project_slap_interface_workflow/script_Project_
requestToken
</string>
<string>
after_script/portal_workflow/project_slap_interface_workflow/script_Project_
leaveProject
</string>
</tuple>
</value>
</item>
...
...
@@ -48,7 +48,7 @@
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
transition_
request_token
</string>
</value>
<value>
<string>
transition_
leave_project
</string>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
...
...
@@ -56,7 +56,7 @@
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
RequestToken
</string>
</value>
<value>
<string>
Leave Project
</string>
</value>
</item>
<item>
<key>
<string>
trigger_type
</string>
</key>
...
...
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