web/views/editviews.py
changeset 2650 18aec79ec3a3
parent 2381 caad2367d940
child 2789 39712da6f397
child 2996 866a2c135c33
equal deleted inserted replaced
2649:5d4a943695d1 2650:18aec79ec3a3
   118         """add options to search among all entities of each possible type"""
   118         """add options to search among all entities of each possible type"""
   119         options = []
   119         options = []
   120         eid = entity.eid
   120         eid = entity.eid
   121         pending_inserts = self.req.get_pending_inserts(eid)
   121         pending_inserts = self.req.get_pending_inserts(eid)
   122         rtype = rschema.type
   122         rtype = rschema.type
   123         form = self.vreg.select('forms', 'edition', self.req, entity=entity)
   123         form = self.vreg['forms'].select('edition', self.req, entity=entity)
   124         field = form.field_by_name(rschema, target, entity.e_schema)
   124         field = form.field_by_name(rschema, target, entity.e_schema)
   125         limit = self.req.property_value('navigation.combobox-limit')
   125         limit = self.req.property_value('navigation.combobox-limit')
   126         for eview, reid in form.form_field_vocabulary(field, limit):
   126         for eview, reid in form.form_field_vocabulary(field, limit):
   127             if reid is None:
   127             if reid is None:
   128                 options.append('<option class="separator">-- %s --</option>'
   128                 options.append('<option class="separator">-- %s --</option>'