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
Titouan Soulard
erp5
Commits
e8b65a56
Commit
e8b65a56
authored
Mar 16, 2023
by
Kazuhiko Shiozaki
Committed by
Jérome Perrin
Aug 21, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
py2/py3: cast dict.keys() to list.
parent
e697e5bf
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
4 deletions
+6
-4
bt5/erp5_trade/TestTemplateItem/portal_components/test.erp5.testOrderBuilder.py
...plateItem/portal_components/test.erp5.testOrderBuilder.py
+2
-1
product/ERP5/bootstrap/erp5_core/ToolComponentTemplateItem/portal_components/tool.erp5.DomainTool.py
...entTemplateItem/portal_components/tool.erp5.DomainTool.py
+2
-1
product/ERP5Type/mixin/matrix.py
product/ERP5Type/mixin/matrix.py
+2
-2
No files found.
bt5/erp5_trade/TestTemplateItem/portal_components/test.erp5.testOrderBuilder.py
View file @
e8b65a56
...
...
@@ -27,6 +27,7 @@
#
##############################################################################
from
Products.ERP5Type.Utils
import
ensure_list
from
Products.ERP5Type.tests.ERP5TypeTestCase
import
ERP5TypeTestCase
from
DateTime
import
DateTime
from
Products.ERP5Type.tests.Sequence
import
SequenceList
...
...
@@ -240,7 +241,7 @@ class TestOrderBuilderMixin(TestOrderMixin, InventoryAPITestCase):
self
.
wanted_quantity_matrix
=
self
.
decrease_quantity_matrix
.
copy
()
packing_list_line
.
setVariationCategoryList
(
self
.
decrease_quantity_matrix
.
keys
(
),
ensure_list
(
self
.
decrease_quantity_matrix
.
keys
()
),
)
self
.
tic
()
...
...
product/ERP5/bootstrap/erp5_core/ToolComponentTemplateItem/portal_components/tool.erp5.DomainTool.py
View file @
e8b65a56
...
...
@@ -32,6 +32,7 @@ from AccessControl import ClassSecurityInfo
from
Products.ERP5Type.Globals
import
InitializeClass
from
Products.ERP5Type
import
Permissions
from
Products.ERP5Type.Tool.BaseTool
import
BaseTool
from
Products.ERP5Type.Utils
import
ensure_list
from
Products.ZSQLCatalog.SQLCatalog
import
SimpleQuery
,
ComplexQuery
import
six
...
...
@@ -337,7 +338,7 @@ class DomainTool(BaseTool):
mapped_value
=
self
.
getPortalObject
().
newContent
(
temp_object
=
True
,
portal_type
=
'Supply Cell'
,
id
=
'multivalued_mapped_value'
)
mapped_value
.
_setMappedValuePropertyList
(
mapped_value_property_dict
.
keys
(
))
ensure_list
(
mapped_value_property_dict
.
keys
()
))
mapped_value
.
__dict__
.
update
(
mapped_value_property_dict
)
return
mapped_value
...
...
product/ERP5Type/mixin/matrix.py
View file @
e8b65a56
...
...
@@ -30,7 +30,7 @@ from Products.ERP5Type.Globals import InitializeClass, PersistentMapping
from
Acquisition
import
aq_base
from
AccessControl
import
ClassSecurityInfo
from
Products.ERP5Type
import
Permissions
from
Products.ERP5Type.Utils
import
cartesianProduct
,
INFINITE_SET
from
Products.ERP5Type.Utils
import
cartesianProduct
,
ensure_list
,
INFINITE_SET
from
Products.ERP5Type.Accessor.Constant
import
PropertyGetter
as
ConstantGetter
from
zLOG
import
LOG
...
...
@@ -163,7 +163,7 @@ class Matrix(object):
else
:
delete
=
set
()
to_delete
.
append
(
delete
)
for
k
,
v
in
id_dict
.
items
(
):
for
k
,
v
in
ensure_list
(
id_dict
.
items
()
):
try
:
axis
.
remove
(
k
)
if
last_id
<
v
:
...
...
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