Commit 4d47c5ab authored by Tomáš Peterka's avatar Tomáš Peterka Committed by Tomáš Peterka

[Formulator] Field does not create empty TALES expressions

Maybe @kazuhiko  is interested in this since you are using the edit_xmlrpc methods sometimes in your tests, right?

This effectively allows to zero-out some TALES expressions via manage_tales_xmlrpc which was not possible before. It is enough to set them to an empty string. 

/reviewed-on !563
parent c316439d
......@@ -651,7 +651,10 @@ class ZMIField(
from TALESField import TALESMethod
result = {}
for key, value in map.items():
result[key] = TALESMethod(value)
if value:
result[key] = TALESMethod(value)
else:
result[key] = '' # do not create empty methods
self._edit_tales(result)
# display test screen
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment