edit[s|o] field's value should be formatted as the associated field stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 23 Jun 2009 13:43:39 +0200
branchstable
changeset 2146 6645e18e8c93
parent 2145 529867c301fc
child 2147 476a75ede2cc
edit[s|o] field's value should be formatted as the associated field
web/formfields.py
--- a/web/formfields.py	Tue Jun 23 12:12:34 2009 +0200
+++ b/web/formfields.py	Tue Jun 23 13:43:39 2009 +0200
@@ -406,6 +406,9 @@
             name=name, widget=HiddenInput, eidparam=True)
         self.visible_field = visible_field
 
+    def format_single_value(self, req, value):
+        return self.visible_field.format_single_value(req, value)
+
 
 class RelationField(Field):
     def __init__(self, **kwargs):