web/views/reledit.py
branchstable
changeset 7834 258fc0b4a1e0
parent 7156 b1521f1546e0
child 7879 9aae456abab5
--- a/web/views/reledit.py	Thu Sep 22 17:20:41 2011 +0200
+++ b/web/views/reledit.py	Thu Sep 22 17:20:52 2011 +0200
@@ -104,7 +104,11 @@
                 self._handle_relation(rschema, role, divid, reload, formid, action)
 
     def _handle_attribute(self, rschema, role, divid, reload, action):
-        value = self.entity.printable_value(rschema.type)
+        rvid = self._rules.get('rvid', None)
+        if rvid is not None:
+            value = self._cw.view(rvid, entity=self.entity, rtype=rschema.type)
+        else:
+            value = self.entity.printable_value(rschema.type)
         if not self._should_edit_attribute(rschema):
             self.w(value)
             return