Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wendelin-telecom
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
Paul Graydon
wendelin-telecom
Commits
dc415f1a
Commit
dc415f1a
authored
Mar 05, 2025
by
Paul Graydon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wendelin_telecom_security: Add Local Role management for Data Array Line
parent
e105c711
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
104 additions
and
0 deletions
+104
-0
bt5/wendelin_telecom_security/PortalTypeRolesTemplateItem/Data%20Array%20Line.xml
...urity/PortalTypeRolesTemplateItem/Data%20Array%20Line.xml
+12
-0
bt5/wendelin_telecom_security/SkinTemplateItem/portal_skins/wendelin_telecom_security/ERP5Type_getSecurityCategoryFromParentRelatedDataAnalysisLine.py
...e_getSecurityCategoryFromParentRelatedDataAnalysisLine.py
+23
-0
bt5/wendelin_telecom_security/SkinTemplateItem/portal_skins/wendelin_telecom_security/ERP5Type_getSecurityCategoryFromParentRelatedDataAnalysisLine.xml
..._getSecurityCategoryFromParentRelatedDataAnalysisLine.xml
+62
-0
bt5/wendelin_telecom_security/WorkflowTemplateItem/portal_workflow/wendelin_telecom_security_interaction_workflow/script_DataAnalysis_updateLineRelatedItemLocalRoles.py
...ow/script_DataAnalysis_updateLineRelatedItemLocalRoles.py
+6
-0
bt5/wendelin_telecom_security/bt/template_portal_type_role_list
...ndelin_telecom_security/bt/template_portal_type_role_list
+1
-0
No files found.
bt5/wendelin_telecom_security/PortalTypeRolesTemplateItem/Data%20Array%20Line.xml
0 → 100644
View file @
dc415f1a
<type_roles>
<role
id=
'Auditor'
>
<property
id=
'title'
>
Administrator
</property>
<multi_property
id=
'category'
>
function/administrator
</multi_property>
</role>
<role
id=
'Auditor'
>
<property
id=
'title'
>
Client
</property>
<property
id=
'base_category_script'
>
ERP5Type_getSecurityCategoryFromParentRelatedDataAnalysisLine
</property>
<multi_property
id=
'category'
>
function/user
</multi_property>
<multi_property
id=
'base_category'
>
destination_project
</multi_property>
</role>
</type_roles>
\ No newline at end of file
bt5/wendelin_telecom_security/SkinTemplateItem/portal_skins/wendelin_telecom_security/ERP5Type_getSecurityCategoryFromParentRelatedDataAnalysisLine.py
0 → 100644
View file @
dc415f1a
"""
This script returns a list of dictionaries which represent
the security groups which a person is member of. It extracts
the categories from the specified items related to the current content.
The parameters are
base_category_list -- list of category values we need to retrieve
user_name -- string obtained from getSecurityManager().getUser().getId()
ob -- object which we want to assign roles to
portal_type -- portal type of object
"""
if
object
is
None
:
return
[]
object
=
object
.
getParentValue
()
if
object
is
None
:
return
[]
return
object
.
ERP5Type_getSecurityCategoryFromRelatedDataAnalysisLine
(
base_category_list
,
user_name
,
object
,
portal_type
)
bt5/wendelin_telecom_security/SkinTemplateItem/portal_skins/wendelin_telecom_security/ERP5Type_getSecurityCategoryFromParentRelatedDataAnalysisLine.xml
0 → 100644
View file @
dc415f1a
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"PythonScript"
module=
"Products.PythonScripts.PythonScript"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_bind_names
</string>
</key>
<value>
<object>
<klass>
<global
name=
"_reconstructor"
module=
"copy_reg"
/>
</klass>
<tuple>
<global
name=
"NameAssignments"
module=
"Shared.DC.Scripts.Bindings"
/>
<global
name=
"object"
module=
"__builtin__"
/>
<none/>
</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>
base_category_list, user_name, object, portal_type
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
ERP5Type_getSecurityCategoryFromParentRelatedDataAnalysisLine
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/wendelin_telecom_security/WorkflowTemplateItem/portal_workflow/wendelin_telecom_security_interaction_workflow/script_DataAnalysis_updateLineRelatedItemLocalRoles.py
View file @
dc415f1a
...
...
@@ -12,3 +12,9 @@ for data_analysis_line in data_analysis_lines:
data_analysis_line
.
activate
(
after_tag
=
tag
).
updateLocalRolesOnSecurityGroups
()
for
value
in
data_analysis_line
.
getAggregateValueList
():
value
.
activate
(
after_tag
=
tag
).
updateLocalRolesOnSecurityGroups
()
try
:
content_values
=
value
.
contentValues
()
for
content_value
in
content_values
:
content_value
.
activate
(
after_tag
=
tag
).
updateLocalRolesOnSecurityGroups
()
except
AttributeError
:
pass
bt5/wendelin_telecom_security/bt/template_portal_type_role_list
View file @
dc415f1a
...
...
@@ -5,6 +5,7 @@ Data Analysis
Data Analysis Line
Data Analysis Module
Data Array
Data Array Line
Data Array Module
Data Ingestion
Data Ingestion Module
...
...
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