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
Labels
Merge Requests
7
Merge Requests
7
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Jérome Perrin
erp5
Commits
8392ac0e
Commit
8392ac0e
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
d3777986
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 @
8392ac0e
...
...
@@ -320,7 +320,7 @@ class Matrix(object):
cell_range
=
aq_base
(
self
).
index
[
base_id
]
except
(
AttributeError
,
KeyError
):
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'
)
def
newCell
(
self
,
*
kw
,
**
kwd
):
...
...
@@ -449,7 +449,7 @@ class Matrix(object):
"""
if
getattr
(
aq_base
(
self
),
'index'
,
None
)
is
None
:
return
()
return
self
.
index
.
keys
(
)
return
ensure_list
(
self
.
index
.
keys
()
)
security
.
declareProtected
(
Permissions
.
ModifyPortalContent
,
'delMatrix'
)
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