web/views/primary.py
changeset 4382 6fb02edd05da
parent 4252 6c4f109c2b03
child 4384 f7b22d552b13
equal deleted inserted replaced
4381:62a89969c8b3 4382:6fb02edd05da
   125             if rschema.final or vid == 'reledit':
   125             if rschema.final or vid == 'reledit':
   126                 value = entity.view(vid, rtype=rschema.type, role=role)
   126                 value = entity.view(vid, rtype=rschema.type, role=role)
   127             else:
   127             else:
   128                 rset = self._relation_rset(entity, rschema, role, dispctrl)
   128                 rset = self._relation_rset(entity, rschema, role, dispctrl)
   129                 if rset:
   129                 if rset:
   130                     value = self.view(vid, rset)
   130                     value = self._cw.view(vid, rset)
   131                 else:
   131                 else:
   132                     value = None
   132                     value = None
   133             if self.skip_none and (value is None or value == ''):
   133             if self.skip_none and (value is None or value == ''):
   134                 continue
   134                 continue
   135             try:
   135             try: