web/views/management.py
changeset 4297 5f2081181055
parent 4252 6c4f109c2b03
child 4706 6035e96b64dd
equal deleted inserted replaced
4296:bb8a572d3f55 4297:5f2081181055
   113                                          domid='ownership%s' % entity.eid,
   113                                          domid='ownership%s' % entity.eid,
   114                                          __redirectvid='security',
   114                                          __redirectvid='security',
   115                                          __redirectpath=entity.rest_path())
   115                                          __redirectpath=entity.rest_path())
   116         field = guess_field(entity.e_schema, self._cw.vreg.schema.rschema('owned_by'))
   116         field = guess_field(entity.e_schema, self._cw.vreg.schema.rschema('owned_by'))
   117         form.append_field(field)
   117         form.append_field(field)
   118         self.w(form.render(rendervalues=dict(display_progress_div=False)))
   118         self.w(form.render(display_progress_div=False))
   119 
   119 
   120     def owned_by_information(self, entity):
   120     def owned_by_information(self, entity):
   121         ownersrset = entity.related('owned_by')
   121         ownersrset = entity.related('owned_by')
   122         if ownersrset:
   122         if ownersrset:
   123             self.w('<h3>%s</h3>' % self._cw._('ownership'))
   123             self.w('<h3>%s</h3>' % self._cw._('ownership'))