Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ayush Tiwari
erp5
Commits
c3b2a8df
Commit
c3b2a8df
authored
May 20, 2011
by
Yusei Tahara
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support more than 3 dimensions.
parent
0be33a72
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
2 deletions
+16
-2
product/ERP5Type/tests/utils.py
product/ERP5Type/tests/utils.py
+16
-2
No files found.
product/ERP5Type/tests/utils.py
View file @
c3b2a8df
...
@@ -510,6 +510,19 @@ def updateCellList(portal, line, cell_type, cell_range_method, cell_dict_list):
...
@@ -510,6 +510,19 @@ def updateCellList(portal, line, cell_type, cell_range_method, cell_dict_list):
(line, mapped_value, mapped_value,),
(line, mapped_value, mapped_value,),
)
)
)
)
four_dimension = (
((tab,tab),
( column, column,),
(line, mapped_value, mapped_value,),
(line, mapped_value, mapped_value,),
),
((tab,tab),
( column, column,),
(line, mapped_value, mapped_value,),
(line, mapped_value, mapped_value,),
)
)
"""
"""
def
get_range_id_list
(
range_list
):
def
get_range_id_list
(
range_list
):
if
not
range_list
:
if
not
range_list
:
...
@@ -567,12 +580,13 @@ def updateCellList(portal, line, cell_type, cell_range_method, cell_dict_list):
...
@@ -567,12 +580,13 @@ def updateCellList(portal, line, cell_type, cell_range_method, cell_dict_list):
elif
dimension
==
3
:
elif
dimension
==
3
:
table_list
=
table
table_list
=
table
for
table
in
table_list
:
for
table
in
table_list
:
tab
=
table
[
0
][
0
]
tab_list
=
list
(
table
[
0
])
tab_list
.
reverse
()
column
=
table
[
1
]
column
=
table
[
1
]
for
table_line
in
table
[
2
:]:
for
table_line
in
table
[
2
:]:
row
=
table_line
[
0
]
row
=
table_line
[
0
]
for
index
,
item
in
enumerate
(
table_line
[
1
:]):
for
index
,
item
in
enumerate
(
table_line
[
1
:]):
data_list
.
append
(([
row
,
column
[
index
]
,
tab
]
,
getMappedValueDict
(
item
)))
data_list
.
append
(([
row
,
column
[
index
]
]
+
tab_list
,
getMappedValueDict
(
item
)))
for
category_list
,
mapped_value_dict
in
data_list
:
for
category_list
,
mapped_value_dict
in
data_list
:
cell
=
line
.
newCell
(
portal_type
=
cell_type
,
cell
=
line
.
newCell
(
portal_type
=
cell_type
,
...
...
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