Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
139
Merge Requests
139
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
Jobs
Commits
Open sidebar
nexedi
erp5
Commits
e106a274
Commit
e106a274
authored
Mar 26, 2024
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
configurator_run_my_doc: py3
parent
de37479b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
bt5/erp5_configurator_run_my_doc/SkinTemplateItem/portal_skins/erp5_configurator_run_my_doc/BusinessConfiguration_afterRunMyDocConfiguration.py
...y_doc/BusinessConfiguration_afterRunMyDocConfiguration.py
+3
-3
No files found.
bt5/erp5_configurator_run_my_doc/SkinTemplateItem/portal_skins/erp5_configurator_run_my_doc/BusinessConfiguration_afterRunMyDocConfiguration.py
View file @
e106a274
...
...
@@ -51,7 +51,7 @@ if business_template is not None:
# no need to update security on categories
if
obj
is
not
None
and
obj
.
getPortalType
()
not
in
(
'Category'
,
'Base Category'
,):
obj
.
updateLocalRolesOnSecurityGroups
()
context
.
log
(
"Updated Role Mappings for:
"
,
path
,
obj
.
getPortalType
(
))
context
.
log
(
"Updated Role Mappings for:
%s (%s)"
%
(
path
,
obj
.
getPortalType
()
))
# validate and open all objects
for
path
in
business_template
.
getTemplatePathList
():
...
...
@@ -62,13 +62,13 @@ if business_template is not None:
'Organisation'
):
if
isTransitionPossible
(
obj
,
'validate'
):
obj
.
validate
()
context
.
log
(
"Validated:
"
,
obj
.
getRelativeUrl
())
context
.
log
(
"Validated:
%s"
%
obj
.
getRelativeUrl
())
for
assignment
in
obj
.
contentValues
(
filter
=
{
'portal_type'
:
'Assignment'
}):
if
isTransitionPossible
(
assignment
,
'open'
):
assignment
.
open
()
assignment
.
updateLocalRolesOnSecurityGroups
()
context
.
log
(
"
\
t
Open (assignment):
"
,
assignment
.
getRelativeUrl
())
context
.
log
(
"
\
t
Open (assignment):
%s"
%
assignment
.
getRelativeUrl
())
for
gadget
in
context
.
portal_gadgets
.
objectValues
():
if
gadget
.
getValidationState
()
==
'invisible'
:
...
...
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