Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5-Boxiang
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
Hamza
erp5-Boxiang
Commits
50f1c236
Commit
50f1c236
authored
Nov 19, 2015
by
Kazuhiko Shiozaki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_upgrader: remove duplicate entry in Base_getConstraintTypeListPerPortalType result.
parent
a7946fd2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
bt5/erp5_upgrader/SkinTemplateItem/portal_skins/erp5_upgrader/Base_getConstraintTypeListPerPortalType.xml
...erp5_upgrader/Base_getConstraintTypeListPerPortalType.xml
+2
-2
No files found.
bt5/erp5_upgrader/SkinTemplateItem/portal_skins/erp5_upgrader/Base_getConstraintTypeListPerPortalType.xml
View file @
50f1c236
...
@@ -80,7 +80,7 @@ for property_sheet in portal.portal_property_sheets.objectValues():\n
...
@@ -80,7 +80,7 @@ for property_sheet in portal.portal_property_sheets.objectValues():\n
if constraint_type:\n
if constraint_type:\n
if property_sheet_id in property_sheet_by_type_dict:\n
if property_sheet_id in property_sheet_by_type_dict:\n
type_per_constraint_type.setdefault(\n
type_per_constraint_type.setdefault(\n
constraint_type,
[]).extend
(\n
constraint_type,
set()).update
(\n
property_sheet_by_type_dict[property_sheet_id])\n
property_sheet_by_type_dict[property_sheet_id])\n
type_list_append(constraint_type)\n
type_list_append(constraint_type)\n
if type_list:\n
if type_list:\n
...
@@ -89,7 +89,7 @@ for property_sheet in portal.portal_property_sheets.objectValues():\n
...
@@ -89,7 +89,7 @@ for property_sheet in portal.portal_property_sheets.objectValues():\n
constraint_type_per_type = {}\n
constraint_type_per_type = {}\n
for property_sheet_id, category_list in constraint_type_per_id.iteritems():\n
for property_sheet_id, category_list in constraint_type_per_id.iteritems():\n
for portal_type in property_sheet_by_type_dict.get(property_sheet_id, []):\n
for portal_type in property_sheet_by_type_dict.get(property_sheet_id, []):\n
constraint_type_per_type.setdefault(portal_type,
[]).extend
(category_list)\n
constraint_type_per_type.setdefault(portal_type,
set()).update
(category_list)\n
\n
\n
portal_type_tool = portal.portal_types\n
portal_type_tool = portal.portal_types\n
portal_type_list = constraint_type_per_type.keys()\n
portal_type_list = constraint_type_per_type.keys()\n
...
...
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