web/component.py
changeset 5174 78438ad513ca
parent 4882 4a42d700c52d
child 5385 b6e250dd7a7d
equal deleted inserted replaced
5173:73760bbb66bd 5174:78438ad513ca
   167         if rql is None:
   167         if rql is None:
   168             entity = self.cw_rset.get_entity(row, col)
   168             entity = self.cw_rset.get_entity(row, col)
   169             rset = entity.related(self.rtype, role(self))
   169             rset = entity.related(self.rtype, role(self))
   170         else:
   170         else:
   171             eid = self.cw_rset[row][col]
   171             eid = self.cw_rset[row][col]
   172             rset = self._cw.execute(self.rql(), {'x': eid}, 'x')
   172             rset = self._cw.execute(self.rql(), {'x': eid})
   173         if not rset.rowcount:
   173         if not rset.rowcount:
   174             return
   174             return
   175         self.w(u'<div class="%s">' % self.div_class())
   175         self.w(u'<div class="%s">' % self.div_class())
   176         self.w(u'<h4>%s</h4>\n' % self._cw._(self.title).capitalize())
   176         self.w(u'<h4>%s</h4>\n' % self._cw._(self.title).capitalize())
   177         self.wview(self.vid, rset)
   177         self.wview(self.vid, rset)