web/views/editforms.py
branchstable
changeset 2380 5d980ba57632
parent 2376 04ee75e2c63d
child 2381 caad2367d940
child 2392 4f6bfffbfb80
--- a/web/views/editforms.py	Wed Jul 15 23:48:33 2009 +0200
+++ b/web/views/editforms.py	Thu Jul 16 08:08:11 2009 +0200
@@ -137,6 +137,12 @@
             self._attribute_form(entity, value, rtype, role, reload,
                                  row, col, default, landing_zone)
         else:
+            dispctrl = uicfg.primaryview_display_ctrl.etype_get(entity.e_schema,
+                                                                rtype, role)
+            vid = dispctrl.get('vid', 'reledit')
+            if vid != 'reledit': # reledit explicitly disabled
+                self.wview(vid, entity.related(rtype, role))
+                return
             if rvid is None:
                 rvid = self._compute_best_vid(entity, rtype, role)
             rset = entity.related(rtype, role)