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
1
Merge Requests
1
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
Romain Courteaud
slapos.core
Commits
21ea0a38
Commit
21ea0a38
authored
Jun 15, 2022
by
Romain Courteaud
🐙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_erp5: drop transfer from another Project
parent
bd399cbe
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
183 deletions
+0
-183
master/bt5/slapos_erp5/WorkflowTemplateItem/portal_workflow/local_permission_slapos_interaction_workflow/interaction_InternalPackingListLine_setAggregate.xml
...flow/interaction_InternalPackingListLine_setAggregate.xml
+0
-68
master/bt5/slapos_erp5/WorkflowTemplateItem/portal_workflow/local_permission_slapos_interaction_workflow/script_InternalPackingListLine_updateAggregateLocalRoles.py
...ript_InternalPackingListLine_updateAggregateLocalRoles.py
+0
-35
master/bt5/slapos_erp5/WorkflowTemplateItem/portal_workflow/local_permission_slapos_interaction_workflow/script_InternalPackingListLine_updateAggregateLocalRoles.xml
...ipt_InternalPackingListLine_updateAggregateLocalRoles.xml
+0
-80
No files found.
master/bt5/slapos_erp5/WorkflowTemplateItem/portal_workflow/local_permission_slapos_interaction_workflow/interaction_InternalPackingListLine_setAggregate.xml
deleted
100644 → 0
View file @
bd399cbe
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Interaction Workflow Interaction"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
categories
</string>
</key>
<value>
<tuple>
<string>
before_commit_script/portal_workflow/local_permission_slapos_interaction_workflow/script_InternalPackingListLine_updateAggregateLocalRoles
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
interaction_InternalPackingListLine_setAggregate
</string>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Interaction Workflow Interaction
</string>
</value>
</item>
<item>
<key>
<string>
portal_type_filter
</string>
</key>
<value>
<tuple>
<string>
Internal Packing List Line
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
portal_type_group_filter
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
temporary_document_disallowed
</string>
</key>
<value>
<int>
0
</int>
</value>
</item>
<item>
<key>
<string>
trigger_method_id
</string>
</key>
<value>
<tuple>
<string>
_setAggregate.*
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
trigger_once_per_transaction
</string>
</key>
<value>
<int>
0
</int>
</value>
</item>
<item>
<key>
<string>
trigger_type
</string>
</key>
<value>
<int>
2
</int>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
master/bt5/slapos_erp5/WorkflowTemplateItem/portal_workflow/local_permission_slapos_interaction_workflow/script_InternalPackingListLine_updateAggregateLocalRoles.py
deleted
100644 → 0
View file @
bd399cbe
from
Products.ZSQLCatalog.SQLCatalog
import
SimpleQuery
,
ComplexQuery
portal_type_list
=
[
'Compute Node'
,
'Computer Network'
,
'Instance Tree'
]
portal
=
context
.
getPortalObject
()
internal_packing_list_line
=
state_change
[
'object'
]
after_tag
=
(
internal_packing_list_line
.
getPath
(),
(
'immediateReindexObject'
,
'recursiveImmediateReindexObject'
))
internal_packing_list_line
.
getParentValue
().
reindexObject
()
for
object_
in
internal_packing_list_line
.
getAggregateValueList
(
portal_type
=
portal_type_list
):
object_
.
activate
(
after_path_and_method_id
=
after_tag
).
updateLocalRolesOnSecurityGroups
()
if
object_
.
getPortalType
()
==
"Compute Node"
:
portal
.
portal_catalog
.
searchAndActivate
(
portal_type
=
[
"Software Installation"
,
"Support Request"
,
"Upgrade Decision Line"
],
aggregate__uid
=
object_
.
getUid
(),
method_id
=
"Base_updateSlapOSLocalRolesOnSecurityGroups"
,
method_kw
=
dict
(
activate_kw
=
{
"after_path_and_method_id"
:
after_tag
}),
activate_kw
=
{
"after_path_and_method_id"
:
after_tag
}
)
elif
object_
.
getPortalType
()
==
"Instance Tree"
:
query
=
ComplexQuery
(
ComplexQuery
(
SimpleQuery
(
portal_type
=
[
"Software instance"
,
"Slave Instance"
]),
SimpleQuery
(
default_specialise_uid
=
object_
.
getUid
()),
logical_operator
=
"AND"
),
ComplexQuery
(
SimpleQuery
(
portal_type
=
[
"Support Request"
,
"Upgrade Decision Line"
]),
SimpleQuery
(
aggregate__uid
=
object_
.
getUid
()),
logical_operator
=
"AND"
),
logical_operator
=
"OR"
)
portal
.
portal_catalog
.
searchAndActivate
(
query
=
query
,
method_id
=
"Base_updateSlapOSLocalRolesOnSecurityGroups"
,
method_kw
=
dict
(
activate_kw
=
{
"after_path_and_method_id"
:
after_tag
}),
activate_kw
=
{
"after_path_and_method_id"
:
after_tag
}
)
master/bt5/slapos_erp5/WorkflowTemplateItem/portal_workflow/local_permission_slapos_interaction_workflow/script_InternalPackingListLine_updateAggregateLocalRoles.xml
deleted
100644 → 0
View file @
bd399cbe
<?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>
_proxy_roles
</string>
</key>
<value>
<tuple>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
script_InternalPackingListLine_updateAggregateLocalRoles
</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>
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