# HG changeset patch # User Adrien Di Mascio # Date 1247724491 -7200 # Node ID 5d980ba57632940494ec48d7da04b04fcd0b6c1d # Parent 3fb9ceb5650f1a01a5edf8e6e7e57cdeae98237a [reledit] restore primaryview_display_ctrl usage by default in reledit (including bugfix over last implementation) diff -r 3fb9ceb5650f -r 5d980ba57632 web/views/editforms.py --- 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)