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
Jérome Perrin
slapos.core
Commits
24ca0f3b
Commit
24ca0f3b
authored
Mar 06, 2024
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixup! slapos_erp5: Drop admin script
parent
3defd07f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
17 deletions
+0
-17
master/bt5/slapos_erp5/SkinTemplateItem/portal_skins/slapos_administration/ERP5Site_updateAllLocalRolesOnSecurityGroupsForSlapOS.py
.../ERP5Site_updateAllLocalRolesOnSecurityGroupsForSlapOS.py
+0
-16
master/bt5/slapos_erp5/TestTemplateItem/portal_components/test.erp5.testSlapOSCodingStyle.py
...Item/portal_components/test.erp5.testSlapOSCodingStyle.py
+0
-1
No files found.
master/bt5/slapos_erp5/SkinTemplateItem/portal_skins/slapos_administration/ERP5Site_updateAllLocalRolesOnSecurityGroupsForSlapOS.py
deleted
100644 → 0
View file @
3defd07f
portal
=
context
.
getPortalObject
()
# List of all portal types which contains some upgrade
for
portal_type
in
(
"Access Token Module"
,
"Account Module"
,
"Account"
,
"Accounting Period"
,
"Accounting Transaction Module"
,
"Accounting Transaction"
,
"Acknowledgement"
,
"Assignment"
,
"Balance Transaction"
,
"Bank Account"
,
"Compute Node"
,
"Compute Partition"
,
"Business Process Module"
,
"Business Process"
,
"Campaign Module"
,
"Campaign"
,
"Cash Register"
,
"Cloud Contract Module"
,
"Cloud Contract"
,
"Component Module"
,
"Component"
,
"Computer Consumption TioXML File"
,
"Computer Model Module"
,
"Computer Model"
,
"Compute Node Module"
,
"Computer Network Module"
,
"Computer Network"
,
"Consumption Document Module"
,
"Contribution Tool"
,
"Credential Update Module"
,
"Credit Card"
,
"Currency Module"
,
"Currency"
,
"Data Set Module"
,
"Data Set"
,
"Document Ingestion Module"
,
"Document Module"
,
"Drawing"
,
"Event Module"
,
"Fax Message"
,
"File"
,
"Gadget Tool"
,
"Gadget"
,
"Instance Tree Module"
,
"Instance Tree"
,
"Image Module"
,
"Image"
,
"Integration Site"
,
"Integration Tool"
,
"Inventory Module"
,
"Inventory"
,
"Knowledge Box"
,
"Knowledge Pad Module"
,
"Knowledge Pad"
,
"Letter"
,
"Mail Message"
,
"Meeting Module"
,
"Meeting"
,
"Note"
,
"Notification Message Module"
,
"Notification Message"
,
"One Time Restricted Access Token"
,
"Open Sale Order Module"
,
"Open Sale Order"
,
"Organisation Module"
,
"Organisation"
,
"PDF"
,
"Payment Transaction"
,
"Payzen Event"
,
"Person Module"
,
"Person"
,
"Phone Call"
,
"Presentation"
,
"Product Module"
,
"Product"
,
"Project Module"
,
"Project"
,
"Purchase Invoice Transaction"
,
"Purchase Order Module"
,
"Purchase Order"
,
"Purchase Trade Condition Module"
,
"Purchase Trade Condition"
,
"Query Module"
,
"Query"
,
"Regularisation Request Module"
,
"Regularisation Request"
,
"Restricted Access Token"
,
"Sale Invoice Transaction"
,
"Sale Opportunity Module"
,
"Sale Opportunity"
,
"Sale Order Module"
,
"Sale Order"
,
"Sale Packing List Module"
,
"Sale Trade Condition Module"
,
"Sale Trade Condition"
,
"Service Module"
,
"Service"
,
"Short Message"
,
"Site Message"
,
"Slave Instance"
,
"Software Installation Module"
,
"Software Installation"
,
"Software Instance Module"
,
"Software Instance"
,
"Software Product Module"
,
"Software Product"
,
"Software Release Module"
,
"Software Release"
,
"Spreadsheet"
,
"Support Request Module"
,
"Support Request"
,
"System Event Module"
,
"Text"
,
"Transformation Module"
,
"Transformation"
,
"Upgrade Decision Module"
,
"Upgrade Decision"
,
"User Consumption HTML File"
,
"Visit"
,
"Web Message"
,
"Web Page Module"
,
"Web Page"
):
print
(
portal_type
)
portal
.
portal_types
[
portal_type
].
updateRoleMapping
(
priority
=
4
)
context
.
portal_catalog
.
searchAndActivate
(
method_id
=
"updateLocalRolesOnSecurityGroups"
,
default_specialise_uid
=
[
context
.
sale_trade_condition_module
.
slapos_subscription_trade_condition
.
getUid
(),
context
.
sale_trade_condition_module
.
slapos_aggregated_trade_condition
.
getUid
()],
portal_type
=
"Sale Packing List"
)
return
printed
master/bt5/slapos_erp5/TestTemplateItem/portal_components/test.erp5.testSlapOSCodingStyle.py
View file @
24ca0f3b
...
...
@@ -268,7 +268,6 @@ def makeTestSlapOSCodingStyleTestCase(tested_business_template):
'slapos_administration/Base_checkStoredBrokenState'
,
'slapos_administration/ERP5Site_cleanUnusedSecurityUid'
,
'slapos_administration/ERP5Site_getSecurityUidStat'
,
'slapos_administration/ERP5Site_updateAllLocalRolesOnSecurityGroupsForSlapOS'
,
'slapos_administration/NotificationMessageModule_updateProductionNotificationId'
,
'slapos_administration/TemplateTool_deleteObsoleteTemplateList'
,
'slapos_administration/TemplateTool_unindexDeletedObjectList'
,
...
...
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