web/box.py
changeset 4161 4273f5094651
parent 4094 8b0c6c272ad9
child 4252 6c4f109c2b03
equal deleted inserted replaced
4160:3fbdeef9a610 4161:4273f5094651
   219         # in other cases, use vocabulary functions
   219         # in other cases, use vocabulary functions
   220         entities = []
   220         entities = []
   221         form = self.vreg['forms'].select('edition', self._cw, rset=self.cw_rset,
   221         form = self.vreg['forms'].select('edition', self._cw, rset=self.cw_rset,
   222                                          row=self.cw_row or 0)
   222                                          row=self.cw_row or 0)
   223         field = form.field_by_name(self.rtype, get_role(self), entity.e_schema)
   223         field = form.field_by_name(self.rtype, get_role(self), entity.e_schema)
   224         for _, eid in form.form_field_vocabulary(field):
   224         for _, eid in field.choices(form):
   225             if eid is not None:
   225             if eid is not None:
   226                 rset = self._cw.eid_rset(eid)
   226                 rset = self._cw.eid_rset(eid)
   227                 entities.append(rset.get_entity(0, 0))
   227                 entities.append(rset.get_entity(0, 0))
   228         return entities
   228         return entities
   229 
   229