equal
deleted
inserted
replaced
438 """ |
438 """ |
439 #self.form_title(entity) |
439 #self.form_title(entity) |
440 form = self._cw.vreg['forms'].select(self.__regid__, self._cw, |
440 form = self._cw.vreg['forms'].select(self.__regid__, self._cw, |
441 rset=self.cw_rset, |
441 rset=self.cw_rset, |
442 copy_nav_params=True) |
442 copy_nav_params=True) |
443 self.w(form.render()) |
443 # XXX overriding formvid (eg __form_id) necessary to make work edition: |
|
444 # the edit controller try to select the form with no rset but |
|
445 # entity=entity, and use this form to edit the entity. So we want |
|
446 # edition form there but specifying formvid may have other undesired |
|
447 # side effect. Maybe we should provide another variable optinally |
|
448 # telling which form the edit controller should select (eg difffers |
|
449 # between html generation / post handling form) |
|
450 self.w(form.render(formvid='edition')) |
444 |
451 |
445 |
452 |
446 class InlineEntityEditionFormView(FormViewMixIn, EntityView): |
453 class InlineEntityEditionFormView(FormViewMixIn, EntityView): |
447 """ |
454 """ |
448 :attr peid: the parent entity's eid hosting the inline form |
455 :attr peid: the parent entity's eid hosting the inline form |