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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
iv
erp5
Commits
781400ad
Commit
781400ad
authored
Jan 13, 2012
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor Style changes
parent
69de1e99
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
product/ERP5Configurator/Document/RoleConfiguratorItem.py
product/ERP5Configurator/Document/RoleConfiguratorItem.py
+5
-3
No files found.
product/ERP5Configurator/Document/RoleConfiguratorItem.py
View file @
781400ad
...
@@ -71,15 +71,16 @@ class RoleConfiguratorItem(ConfiguratorItemMixin, XMLObject):
...
@@ -71,15 +71,16 @@ class RoleConfiguratorItem(ConfiguratorItemMixin, XMLObject):
mod_conf_list
=
[]
mod_conf_list
=
[]
portal_type
=
oo_module_dict
.
pop
(
'portal_type'
)
portal_type
=
oo_module_dict
.
pop
(
'portal_type'
)
for
category
,
role_list_string
in
oo_module_dict
.
items
():
for
category
,
role_list_string
in
oo_module_dict
.
items
():
# passed from outside (it has higher priority than configuratio
h
n file)
# passed from outside (it has higher priority than configuration file)
category
=
dynamic_values
.
get
(
category
,
category
)
category
=
dynamic_values
.
get
(
category
,
category
)
title
=
category
.
replace
(
'/'
,
'_'
)
title
=
category
.
replace
(
'/'
,
'_'
)
role_name_list
=
[
x
.
strip
()
for
x
in
role_list_string
.
split
(
';'
)]
role_name_list
=
[
x
.
strip
()
for
x
in
role_list_string
.
split
(
';'
)]
role_category_list
=
[
category
]
role_category_list
=
[
category
]
conf_dict
=
{
'title'
:
title
,
conf_dict
=
{
'title'
:
title
,
'description'
:
'Configured by
Nexedi
Configurator'
,
'description'
:
'Configured by
ERP5
Configurator'
,
'role_name_list'
:
role_name_list
,
'role_name_list'
:
role_name_list
,
'role_category_list'
:
role_category_list
}
'role_category_list'
:
role_category_list
}
mod_conf_list
.
append
(
conf_dict
)
mod_conf_list
.
append
(
conf_dict
)
portal_type_dict
[
portal_type
]
=
mod_conf_list
portal_type_dict
[
portal_type
]
=
mod_conf_list
## Update fake site
## Update fake site
...
@@ -94,6 +95,7 @@ class RoleConfiguratorItem(ConfiguratorItemMixin, XMLObject):
...
@@ -94,6 +95,7 @@ class RoleConfiguratorItem(ConfiguratorItemMixin, XMLObject):
else
:
else
:
ignore_list
.
append
(
portal_type
)
ignore_list
.
append
(
portal_type
)
LOG
(
"CONFIGURATOR"
,
INFO
,
"Fail to define Roles for %s"
%
portal_type
)
LOG
(
"CONFIGURATOR"
,
INFO
,
"Fail to define Roles for %s"
%
portal_type
)
## Update BT5
## Update BT5
bt5_obj
=
business_configuration
.
getSpecialiseValue
()
bt5_obj
=
business_configuration
.
getSpecialiseValue
()
# keep existing roles definition (from previous configuration saves)
# keep existing roles definition (from previous configuration saves)
...
...
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