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
138
Merge Requests
138
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
Jobs
Commits
Open sidebar
nexedi
erp5
Commits
c145d0f7
Commit
c145d0f7
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
a5d29640
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 @
c145d0f7
...
@@ -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