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
d5d9ba84
Commit
d5d9ba84
authored
Mar 22, 2023
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
formulator py3
parent
3d62ab96
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 @
d5d9ba84
...
@@ -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
:
...
...
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