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
22a8f19d
Commit
22a8f19d
authored
1 year ago
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
formulator py3
parent
663ed30c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
product/ERP5Form/ProxyField.py
product/ERP5Form/ProxyField.py
+4
-4
No files found.
product/ERP5Form/ProxyField.py
View file @
22a8f19d
...
@@ -245,15 +245,15 @@ class ProxyField(ZMIField):
...
@@ -245,15 +245,15 @@ class ProxyField(ZMIField):
# acquire get_unicode_mode and get_stored_encoding from form..
# acquire get_unicode_mode and get_stored_encoding from form..
if
self
.
get_unicode_mode
():
if
self
.
get_unicode_mode
():
new_result
=
{}
new_result
=
{}
for
key
,
value
in
result
.
items
(
):
for
key
,
value
in
six
.
iteritems
(
result
):
if
isinstance
(
value
,
six
.
binary_type
):
if
isinstance
(
value
,
six
.
binary_type
):
# in unicode mode, Formulator UI always uses UTF-8
# in unicode mode, Formulator UI always uses UTF-8
value
=
six
.
text_type
(
messag
e
,
'utf-8'
)
value
=
six
.
text_type
(
valu
e
,
'utf-8'
)
new_result
[
key
]
=
value
new_result
[
key
]
=
value
result
=
new_result
result
=
new_result
changed
=
[]
changed
=
[]
for
key
,
value
in
result
.
items
(
):
for
key
,
value
in
six
.
iteritems
(
result
):
# XXX Remove old values
# XXX Remove old values
values
.
pop
(
key
,
None
)
values
.
pop
(
key
,
None
)
# store keys for which we want to notify change
# store keys for which we want to notify change
...
@@ -261,7 +261,7 @@ class ProxyField(ZMIField):
...
@@ -261,7 +261,7 @@ class ProxyField(ZMIField):
changed
.
append
(
key
)
changed
.
append
(
key
)
proxied_field
=
self
.
getTemplateField
()
proxied_field
=
self
.
getTemplateField
()
for
key
,
value
in
result
.
items
(
):
for
key
,
value
in
list
(
six
.
iteritems
(
result
)
):
if
key
not
in
surcharge_list
:
if
key
not
in
surcharge_list
:
result
.
pop
(
key
)
result
.
pop
(
key
)
if
key
in
self
.
tales
:
if
key
in
self
.
tales
:
...
...
This diff is collapsed.
Click to expand it.
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