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
Nikola Balog
erp5
Commits
9214ab1d
Commit
9214ab1d
authored
Jan 22, 2024
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
product/ERP5Type/mixin/matrix: python3 compatibility
parent
9207eaab
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
product/ERP5Type/mixin/matrix.py
product/ERP5Type/mixin/matrix.py
+2
-2
No files found.
product/ERP5Type/mixin/matrix.py
View file @
9214ab1d
...
@@ -320,7 +320,7 @@ class Matrix(object):
...
@@ -320,7 +320,7 @@ class Matrix(object):
cell_range
=
aq_base
(
self
).
index
[
base_id
]
cell_range
=
aq_base
(
self
).
index
[
base_id
]
except
(
AttributeError
,
KeyError
):
except
(
AttributeError
,
KeyError
):
return
[]
return
[]
return
[
x
.
keys
(
)
for
_
,
x
in
sorted
(
six
.
iteritems
(
cell_range
))]
return
[
ensure_list
(
x
.
keys
()
)
for
_
,
x
in
sorted
(
six
.
iteritems
(
cell_range
))]
security
.
declareProtected
(
Permissions
.
ModifyPortalContent
,
'newCell'
)
security
.
declareProtected
(
Permissions
.
ModifyPortalContent
,
'newCell'
)
def
newCell
(
self
,
*
kw
,
**
kwd
):
def
newCell
(
self
,
*
kw
,
**
kwd
):
...
@@ -449,7 +449,7 @@ class Matrix(object):
...
@@ -449,7 +449,7 @@ class Matrix(object):
"""
"""
if
getattr
(
aq_base
(
self
),
'index'
,
None
)
is
None
:
if
getattr
(
aq_base
(
self
),
'index'
,
None
)
is
None
:
return
()
return
()
return
self
.
index
.
keys
(
)
return
ensure_list
(
self
.
index
.
keys
()
)
security
.
declareProtected
(
Permissions
.
ModifyPortalContent
,
'delMatrix'
)
security
.
declareProtected
(
Permissions
.
ModifyPortalContent
,
'delMatrix'
)
def
delMatrix
(
self
,
base_id
=
'cell'
):
def
delMatrix
(
self
,
base_id
=
'cell'
):
...
...
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