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
Xavier Thompson
slapos.core
Commits
2f5018ae
Commit
2f5018ae
authored
Jan 25, 2013
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Give member access to the template document.
parent
7f23608b
Changes
12
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
1010 additions
and
9 deletions
+1010
-9
master/bt5/slapos_crm/PathTemplateItem/event_module/slapos_crm_web_message_template.xml
...lateItem/event_module/slapos_crm_web_message_template.xml
+538
-0
master/bt5/slapos_crm/PathTemplateItem/support_request_module/slapos_crm_support_request_template.xml
...rt_request_module/slapos_crm_support_request_template.xml
+398
-5
master/bt5/slapos_crm/bt/revision
master/bt5/slapos_crm/bt/revision
+1
-1
master/bt5/slapos_crm/bt/template_keep_workflow_path_list
master/bt5/slapos_crm/bt/template_keep_workflow_path_list
+3
-1
master/bt5/slapos_erp5/LocalRolesTemplateItem/event_module/slapos_crm_web_message_template.xml
...lateItem/event_module/slapos_crm_web_message_template.xml
+13
-0
master/bt5/slapos_erp5/LocalRolesTemplateItem/support_request_module/slapos_crm_support_request_template.xml
...rt_request_module/slapos_crm_support_request_template.xml
+13
-0
master/bt5/slapos_erp5/PortalTypeRolesTemplateItem/Support%20Request.xml
...os_erp5/PortalTypeRolesTemplateItem/Support%20Request.xml
+6
-0
master/bt5/slapos_erp5/PortalTypeRolesTemplateItem/Web%20Message.xml
...slapos_erp5/PortalTypeRolesTemplateItem/Web%20Message.xml
+6
-0
master/bt5/slapos_erp5/TestTemplateItem/testSlapOSERP5GroupRoleSecurity.py
..._erp5/TestTemplateItem/testSlapOSERP5GroupRoleSecurity.py
+26
-0
master/bt5/slapos_erp5/bt/revision
master/bt5/slapos_erp5/bt/revision
+1
-1
master/bt5/slapos_erp5/bt/template_local_role_list
master/bt5/slapos_erp5/bt/template_local_role_list
+2
-0
master/bt5/slapos_erp5/bt/template_local_roles_list
master/bt5/slapos_erp5/bt/template_local_roles_list
+3
-1
No files found.
master/bt5/slapos_crm/PathTemplateItem/event_module/slapos_crm_web_message_template.xml
View file @
2f5018ae
This diff is collapsed.
Click to expand it.
master/bt5/slapos_crm/PathTemplateItem/support_request_module/slapos_crm_support_request_template.xml
View file @
2f5018ae
This diff is collapsed.
Click to expand it.
master/bt5/slapos_crm/bt/revision
View file @
2f5018ae
3
4
\ No newline at end of file
\ No newline at end of file
master/bt5/slapos_crm/bt/template_keep_workflow_path_list
View file @
2f5018ae
service_module/slapos_crm_acknowledgement
service_module/slapos_crm_acknowledgement
service_module/slapos_crm_complaint
service_module/slapos_crm_complaint
service_module/slapos_crm_information
service_module/slapos_crm_information
service_module/slapos_crm_spam
service_module/slapos_crm_spam
\ No newline at end of file
support_request_module/slapos_crm_support_request_template
event_module/slapos_crm_web_message_template
\ No newline at end of file
master/bt5/slapos_erp5/LocalRolesTemplateItem/event_module/slapos_crm_web_message_template.xml
0 → 100644
View file @
2f5018ae
<local_roles_item>
<local_roles>
<role
id=
'G-COMPANY'
>
<item>
Assignor
</item>
</role>
<role
id=
'R-MEMBER'
>
<item>
Auditor
</item>
</role>
<role
id=
'zope'
>
<item>
Owner
</item>
</role>
</local_roles>
</local_roles_item>
\ No newline at end of file
master/bt5/slapos_erp5/LocalRolesTemplateItem/support_request_module/slapos_crm_support_request_template.xml
0 → 100644
View file @
2f5018ae
<local_roles_item>
<local_roles>
<role
id=
'G-COMPANY'
>
<item>
Assignor
</item>
</role>
<role
id=
'R-MEMBER'
>
<item>
Auditor
</item>
</role>
<role
id=
'zope'
>
<item>
Owner
</item>
</role>
</local_roles>
</local_roles_item>
\ No newline at end of file
master/bt5/slapos_erp5/PortalTypeRolesTemplateItem/Support%20Request.xml
View file @
2f5018ae
...
@@ -10,4 +10,10 @@
...
@@ -10,4 +10,10 @@
<multi_property
id=
'category'
>
group/company
</multi_property>
<multi_property
id=
'category'
>
group/company
</multi_property>
<multi_property
id=
'base_category'
>
group
</multi_property>
<multi_property
id=
'base_category'
>
group
</multi_property>
</role>
</role>
<role
id=
'Auditor'
>
<property
id=
'title'
>
Member can see template
</property>
<property
id=
'condition'
>
python: here.getRelativeUrl() == here.getPortalObject().portal_preferences.getPreferredSupportRequestTemplate()
</property>
<multi_property
id=
'category'
>
role/member
</multi_property>
<multi_property
id=
'base_category'
>
role
</multi_property>
</role>
</type_roles>
</type_roles>
\ No newline at end of file
master/bt5/slapos_erp5/PortalTypeRolesTemplateItem/Web%20Message.xml
View file @
2f5018ae
...
@@ -18,4 +18,10 @@
...
@@ -18,4 +18,10 @@
<multi_property
id=
'category'
>
group/company
</multi_property>
<multi_property
id=
'category'
>
group/company
</multi_property>
<multi_property
id=
'base_category'
>
group
</multi_property>
<multi_property
id=
'base_category'
>
group
</multi_property>
</role>
</role>
<role
id=
'Auditor'
>
<property
id=
'title'
>
Member can see template
</property>
<property
id=
'condition'
>
python: here.getRelativeUrl() == here.getPortalObject().portal_preferences.getPreferredWebMessageTemplate()
</property>
<multi_property
id=
'category'
>
role/member
</multi_property>
<multi_property
id=
'base_category'
>
role
</multi_property>
</role>
</type_roles>
</type_roles>
\ No newline at end of file
master/bt5/slapos_erp5/TestTemplateItem/testSlapOSERP5GroupRoleSecurity.py
View file @
2f5018ae
...
@@ -1713,6 +1713,19 @@ class TestWebMessage(TestSlapOSGroupRoleSecurityMixin):
...
@@ -1713,6 +1713,19 @@ class TestWebMessage(TestSlapOSGroupRoleSecurityMixin):
self
.
assertRoles
(
product
,
reference
,
[
'Auditor'
])
self
.
assertRoles
(
product
,
reference
,
[
'Auditor'
])
self
.
assertRoles
(
product
,
self
.
user_id
,
[
'Owner'
])
self
.
assertRoles
(
product
,
self
.
user_id
,
[
'Owner'
])
def
test_Template
(
self
):
product
=
self
.
portal
.
restrictedTraverse
(
self
.
portal
.
portal_preferences
.
getPreferredWebMessageTemplate
())
assert
product
.
getPortalType
()
==
'Web Message'
product
.
updateLocalRolesOnSecurityGroups
()
self
.
assertSecurityGroup
(
product
,
[
'G-COMPANY'
,
product
.
Base_getOwnerId
(),
'R-MEMBER'
],
False
)
self
.
assertRoles
(
product
,
'G-COMPANY'
,
[
'Assignor'
])
self
.
assertRoles
(
product
,
product
.
Base_getOwnerId
(),
[
'Owner'
])
self
.
assertRoles
(
product
,
'R-MEMBER'
,
[
'Auditor'
])
self
.
assertPermissionsOfRole
(
product
,
'Auditor'
,
[
'Access contents information'
,
'View'
])
class
TestSupportRequestModule
(
TestSlapOSGroupRoleSecurityMixin
):
class
TestSupportRequestModule
(
TestSlapOSGroupRoleSecurityMixin
):
def
test
(
self
):
def
test
(
self
):
module
=
self
.
portal
.
support_request_module
module
=
self
.
portal
.
support_request_module
...
@@ -1747,6 +1760,19 @@ class TestSupportRequest(TestSlapOSGroupRoleSecurityMixin):
...
@@ -1747,6 +1760,19 @@ class TestSupportRequest(TestSlapOSGroupRoleSecurityMixin):
self
.
assertRoles
(
product
,
reference
,
[
'Auditor'
])
self
.
assertRoles
(
product
,
reference
,
[
'Auditor'
])
self
.
assertRoles
(
product
,
self
.
user_id
,
[
'Owner'
])
self
.
assertRoles
(
product
,
self
.
user_id
,
[
'Owner'
])
def
test_Template
(
self
):
product
=
self
.
portal
.
restrictedTraverse
(
self
.
portal
.
portal_preferences
.
getPreferredSupportRequestTemplate
())
assert
product
.
getPortalType
()
==
'Support Request'
product
.
updateLocalRolesOnSecurityGroups
()
self
.
assertSecurityGroup
(
product
,
[
'G-COMPANY'
,
product
.
Base_getOwnerId
(),
'R-MEMBER'
],
False
)
self
.
assertRoles
(
product
,
'G-COMPANY'
,
[
'Assignor'
])
self
.
assertRoles
(
product
,
product
.
Base_getOwnerId
(),
[
'Owner'
])
self
.
assertRoles
(
product
,
'R-MEMBER'
,
[
'Auditor'
])
self
.
assertPermissionsOfRole
(
product
,
'Auditor'
,
[
'Access contents information'
,
'View'
])
class
TestTransformationModule
(
TestSlapOSGroupRoleSecurityMixin
):
class
TestTransformationModule
(
TestSlapOSGroupRoleSecurityMixin
):
def
test
(
self
):
def
test
(
self
):
module
=
self
.
portal
.
transformation_module
module
=
self
.
portal
.
transformation_module
...
...
master/bt5/slapos_erp5/bt/revision
View file @
2f5018ae
158
159
\ No newline at end of file
\ No newline at end of file
master/bt5/slapos_erp5/bt/template_local_role_list
View file @
2f5018ae
...
@@ -27,6 +27,7 @@ data_set_module
...
@@ -27,6 +27,7 @@ data_set_module
document_ingestion_module
document_ingestion_module
document_module
document_module
event_module
event_module
event_module/slapos_crm_web_message_template
hosting_subscription_module
hosting_subscription_module
image_module
image_module
inventory_module
inventory_module
...
@@ -59,6 +60,7 @@ software_instance_module
...
@@ -59,6 +60,7 @@ software_instance_module
software_product_module
software_product_module
software_release_module
software_release_module
support_request_module
support_request_module
support_request_module/slapos_crm_support_request_template
system_event_module
system_event_module
transformation_module
transformation_module
web_page_module
web_page_module
\ No newline at end of file
master/bt5/slapos_erp5/bt/template_local_roles_list
View file @
2f5018ae
...
@@ -61,4 +61,6 @@ software_release_module
...
@@ -61,4 +61,6 @@ software_release_module
support_request_module
support_request_module
system_event_module
system_event_module
transformation_module
transformation_module
web_page_module
web_page_module
\ No newline at end of file
support_request_module/slapos_crm_support_request_template
event_module/slapos_crm_web_message_template
\ No newline at end of file
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