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
a6a3fce1
Commit
a6a3fce1
authored
Nov 12, 2012
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Migrate open order security configuration.
parent
1f4bb8b3
Changes
14
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
34 additions
and
16 deletions
+34
-16
master/bt5/slapos_erp5/LocalRolesTemplateItem/open_sale_order_module.xml
...os_erp5/LocalRolesTemplateItem/open_sale_order_module.xml
+0
-3
master/bt5/slapos_erp5/PortalTypeRolesTemplateItem/Open%20Sale%20Order%20Module.xml
...talTypeRolesTemplateItem/Open%20Sale%20Order%20Module.xml
+0
-5
master/bt5/slapos_erp5/PortalTypeRolesTemplateItem/Open%20Sale%20Order.xml
..._erp5/PortalTypeRolesTemplateItem/Open%20Sale%20Order.xml
+7
-0
master/bt5/slapos_erp5/TestTemplateItem/testSlapOSERP5GroupRoleSecurity.py
..._erp5/TestTemplateItem/testSlapOSERP5GroupRoleSecurity.py
+19
-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
+1
-0
master/bt5/slapos_erp5/bt/template_local_roles_list
master/bt5/slapos_erp5/bt/template_local_roles_list
+1
-0
master/bt5/slapos_erp5/bt/template_portal_type_role_list
master/bt5/slapos_erp5/bt/template_portal_type_role_list
+2
-0
master/bt5/slapos_erp5/bt/template_portal_type_roles_list
master/bt5/slapos_erp5/bt/template_portal_type_roles_list
+2
-0
master/bt5/vifib_erp5/bt/revision
master/bt5/vifib_erp5/bt/revision
+1
-1
master/bt5/vifib_erp5/bt/template_local_role_list
master/bt5/vifib_erp5/bt/template_local_role_list
+0
-1
master/bt5/vifib_erp5/bt/template_local_roles_list
master/bt5/vifib_erp5/bt/template_local_roles_list
+0
-1
master/bt5/vifib_erp5/bt/template_portal_type_role_list
master/bt5/vifib_erp5/bt/template_portal_type_role_list
+0
-2
master/bt5/vifib_erp5/bt/template_portal_type_roles_list
master/bt5/vifib_erp5/bt/template_portal_type_roles_list
+0
-2
No files found.
master/bt5/
vifib
_erp5/LocalRolesTemplateItem/open_sale_order_module.xml
→
master/bt5/
slapos
_erp5/LocalRolesTemplateItem/open_sale_order_module.xml
View file @
a6a3fce1
...
@@ -4,9 +4,6 @@
...
@@ -4,9 +4,6 @@
<item>
Auditor
</item>
<item>
Auditor
</item>
<item>
Author
</item>
<item>
Author
</item>
</role>
</role>
<role
id=
'R-MEMBER'
>
<item>
Auditor
</item>
</role>
<role
id=
'zope'
>
<role
id=
'zope'
>
<item>
Owner
</item>
<item>
Owner
</item>
</role>
</role>
...
...
master/bt5/
vifib
_erp5/PortalTypeRolesTemplateItem/Open%20Sale%20Order%20Module.xml
→
master/bt5/
slapos
_erp5/PortalTypeRolesTemplateItem/Open%20Sale%20Order%20Module.xml
View file @
a6a3fce1
...
@@ -4,9 +4,4 @@
...
@@ -4,9 +4,4 @@
<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
</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/
vifib
_erp5/PortalTypeRolesTemplateItem/Open%20Sale%20Order.xml
→
master/bt5/
slapos
_erp5/PortalTypeRolesTemplateItem/Open%20Sale%20Order.xml
View file @
a6a3fce1
<type_roles>
<type_roles>
<role
id=
'Auditor'
>
<property
id=
'title'
>
Destination Decision
</property>
<property
id=
'description'
>
Monovalued role
</property>
<property
id=
'base_category_script'
>
ERP5Type_getSecurityCategoryFromContent
</property>
<multi_property
id=
'base_category'
>
destination_decision
</multi_property>
</role>
<role
id=
'Assignor'
>
<role
id=
'Assignor'
>
<property
id=
'title'
>
Group company
</property>
<property
id=
'title'
>
Group company
</property>
<multi_property
id=
'category'
>
group/company
</multi_property>
<multi_property
id=
'category'
>
group/company
</multi_property>
...
...
master/bt5/slapos_erp5/TestTemplateItem/testSlapOSERP5GroupRoleSecurity.py
View file @
a6a3fce1
...
@@ -749,3 +749,22 @@ class TestContributionTool(TestSlapOSGroupRoleSecurityMixin):
...
@@ -749,3 +749,22 @@ class TestContributionTool(TestSlapOSGroupRoleSecurityMixin):
self
.
assertRoles
(
module
,
'R-MEMBER'
,
[
'Author'
])
self
.
assertRoles
(
module
,
'R-MEMBER'
,
[
'Author'
])
self
.
assertRoles
(
module
,
'G-COMPANY'
,
[
'Author'
,
'Auditor'
])
self
.
assertRoles
(
module
,
'G-COMPANY'
,
[
'Author'
,
'Auditor'
])
self
.
assertRoles
(
module
,
'zope'
,
[
'Owner'
])
self
.
assertRoles
(
module
,
'zope'
,
[
'Owner'
])
class
TestOpenSaleOrderModule
(
TestSlapOSGroupRoleSecurityMixin
):
def
test
(
self
):
module
=
self
.
portal
.
open_sale_order_module
self
.
assertSecurityGroup
(
module
,
[
'G-COMPANY'
,
'zope'
],
False
)
self
.
assertRoles
(
module
,
'G-COMPANY'
,
[
'Auditor'
,
'Author'
])
self
.
assertRoles
(
module
,
'zope'
,
[
'Owner'
])
class
TestOpenSaleOrder
(
TestSlapOSGroupRoleSecurityMixin
):
def
test_GroupCompany
(
self
):
product
=
self
.
portal
.
open_sale_order_module
.
newContent
(
portal_type
=
'Open Sale Order'
)
product
.
updateLocalRolesOnSecurityGroups
()
self
.
assertSecurityGroup
(
product
,
[
'G-COMPANY'
,
self
.
user_id
],
False
)
self
.
assertRoles
(
product
,
'G-COMPANY'
,
[
'Assignor'
])
self
.
assertRoles
(
product
,
self
.
user_id
,
[
'Owner'
])
master/bt5/slapos_erp5/bt/revision
View file @
a6a3fce1
78
79
\ No newline at end of file
\ No newline at end of file
master/bt5/slapos_erp5/bt/template_local_role_list
View file @
a6a3fce1
...
@@ -6,6 +6,7 @@ data_set_module
...
@@ -6,6 +6,7 @@ data_set_module
document_module
document_module
hosting_subscription_module
hosting_subscription_module
image_module
image_module
open_sale_order_module
organisation_module
organisation_module
person_module
person_module
portal_contributions
portal_contributions
...
...
master/bt5/slapos_erp5/bt/template_local_roles_list
View file @
a6a3fce1
open_sale_order_module
computer_model_module
computer_model_module
computer_module
computer_module
computer_network_module
computer_network_module
...
...
master/bt5/slapos_erp5/bt/template_portal_type_role_list
View file @
a6a3fce1
...
@@ -16,6 +16,8 @@ Hosting Subscription
...
@@ -16,6 +16,8 @@ Hosting Subscription
Hosting Subscription Module
Hosting Subscription Module
Image
Image
Image Module
Image Module
Open Sale Order
Open Sale Order Module
Organisation
Organisation
Organisation Module
Organisation Module
PDF
PDF
...
...
master/bt5/slapos_erp5/bt/template_portal_type_roles_list
View file @
a6a3fce1
Open Sale Order
Open Sale Order Module
Assignment
Assignment
Computer
Computer
Computer Model
Computer Model
...
...
master/bt5/vifib_erp5/bt/revision
View file @
a6a3fce1
555
556
\ No newline at end of file
\ No newline at end of file
master/bt5/vifib_erp5/bt/template_local_role_list
View file @
a6a3fce1
...
@@ -26,7 +26,6 @@ inventory_module
...
@@ -26,7 +26,6 @@ inventory_module
knowledge_pad_module
knowledge_pad_module
meeting_module
meeting_module
notification_message_module
notification_message_module
open_sale_order_module
open_sale_order_module/test_hr_admin_open_sale_order
open_sale_order_module/test_hr_admin_open_sale_order
open_sale_order_module/test_sale_agent_open_sale_order
open_sale_order_module/test_sale_agent_open_sale_order
open_sale_order_module/test_updated_vifib_user_open_sale_order
open_sale_order_module/test_updated_vifib_user_open_sale_order
...
...
master/bt5/vifib_erp5/bt/template_local_roles_list
View file @
a6a3fce1
...
@@ -26,7 +26,6 @@ inventory_module
...
@@ -26,7 +26,6 @@ inventory_module
knowledge_pad_module
knowledge_pad_module
meeting_module
meeting_module
notification_message_module
notification_message_module
open_sale_order_module
open_sale_order_module/test_hr_admin_open_sale_order
open_sale_order_module/test_hr_admin_open_sale_order
open_sale_order_module/test_sale_agent_open_sale_order
open_sale_order_module/test_sale_agent_open_sale_order
open_sale_order_module/test_updated_vifib_user_open_sale_order
open_sale_order_module/test_updated_vifib_user_open_sale_order
...
...
master/bt5/vifib_erp5/bt/template_portal_type_role_list
View file @
a6a3fce1
...
@@ -38,8 +38,6 @@ Meeting Module
...
@@ -38,8 +38,6 @@ Meeting Module
Note
Note
Notification Message
Notification Message
Notification Message Module
Notification Message Module
Open Sale Order
Open Sale Order Module
Payment Transaction
Payment Transaction
Payzen Event
Payzen Event
Phone Call
Phone Call
...
...
master/bt5/vifib_erp5/bt/template_portal_type_roles_list
View file @
a6a3fce1
...
@@ -38,8 +38,6 @@ Meeting Module
...
@@ -38,8 +38,6 @@ Meeting Module
Note
Note
Notification Message
Notification Message
Notification Message Module
Notification Message Module
Open Sale Order
Open Sale Order Module
Payment Transaction
Payment Transaction
Payzen Event
Payzen Event
Phone Call
Phone Call
...
...
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