Commit a5e638b8 authored by Romain Courteaud's avatar Romain Courteaud

REQUEST needs to be propagated to get_value (for web_mode for example).


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13175 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 16bd38cb
...@@ -221,19 +221,18 @@ class ParallelListField(ZMIField): ...@@ -221,19 +221,18 @@ class ParallelListField(ZMIField):
return html return html
security.declareProtected('Access contents information', 'get_value') security.declareProtected('Access contents information', 'get_value')
def get_value(self, id, **kw): def get_value(self, id, REQUEST=None, **kw):
""" """
Get value for id. Get value for id.
Optionally pass keyword arguments that get passed to TALES Optionally pass keyword arguments that get passed to TALES
expression. expression.
""" """
REQUEST = kw.get('REQUEST')
key = '_v_plf_%s' % id key = '_v_plf_%s' % id
if (REQUEST is not None) and \ if (REQUEST is not None) and \
(REQUEST.has_key(key)): (REQUEST.has_key(key)):
result = REQUEST.get(key) result = REQUEST.get(key)
else: else:
result = ZMIField.get_value(self, id, **kw) result = ZMIField.get_value(self, id, REQUEST=REQUEST, **kw)
return result return result
def generateSubForm(self, value, REQUEST): def generateSubForm(self, value, REQUEST):
...@@ -253,7 +252,7 @@ def generateSubForm(self, value, REQUEST): ...@@ -253,7 +252,7 @@ def generateSubForm(self, value, REQUEST):
'value': [], 'value': [],
'is_right_display': 0, 'is_right_display': 0,
'size': 5, 'size': 5,
'editable' : self.get_value('editable') 'editable' : self.get_value('editable', REQUEST=REQUEST)
} }
hash_list = [] hash_list = []
......
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