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
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
Binh
erp5
Commits
0504f56c
Commit
0504f56c
authored
Jan 17, 2012
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ignore portal types that not exist or empty lines
parent
21795ffe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
product/ERP5Configurator/Document/PortalTypeRolesSpreadsheetConfiguratorItem.py
...or/Document/PortalTypeRolesSpreadsheetConfiguratorItem.py
+6
-0
No files found.
product/ERP5Configurator/Document/PortalTypeRolesSpreadsheetConfiguratorItem.py
View file @
0504f56c
...
...
@@ -26,6 +26,7 @@
##############################################################################
import
zope.interface
from
zLOG
import
LOG
,
INFO
from
Acquisition
import
aq_base
from
AccessControl
import
ClassSecurityInfo
from
Products.ERP5Type
import
Permissions
,
PropertySheet
,
interfaces
...
...
@@ -33,6 +34,7 @@ from Products.ERP5Type.XMLObject import XMLObject
from
Products.ERP5Configurator.mixin.configurator_item
import
ConfiguratorItemMixin
class
PortalTypeRolesSpreadsheetConfiguratorItem
(
ConfiguratorItemMixin
,
XMLObject
):
"""Import a portal type roles spreadsheet.
"""
...
...
@@ -63,6 +65,10 @@ class PortalTypeRolesSpreadsheetConfiguratorItem(ConfiguratorItemMixin, XMLObjec
self
.
_readSpreadSheet
()
for
type_name
,
role_list
in
self
.
_spreadsheet_cache
.
items
():
portal_type
=
portal
.
portal_types
.
getTypeInfo
(
type_name
)
if
portal_type
is
None
:
LOG
(
"CONFIGURATOR"
,
INFO
,
"Fail to define Roles for %s"
%
portal_type
)
continue
for
role
in
role_list
:
# rebuild a category from Group / Site & Function
category_list
=
[]
...
...
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