web/views/schema.py
branchstable
changeset 4971 20bffbba7a5a
parent 4571 794ac358dc36
child 5224 34e669b6fd95
child 5421 8167de96c523
equal deleted inserted replaced
4969:0ad18e41053a 4971:20bffbba7a5a
   245                                 {'x': entity.eid})
   245                                 {'x': entity.eid})
   246         self.wview('editable-table', rset, 'null', displayfilter=True)
   246         self.wview('editable-table', rset, 'null', displayfilter=True)
   247         self.w(u'<h2>%s</h2>' % _('Relations'))
   247         self.w(u'<h2>%s</h2>' % _('Relations'))
   248         rset = self._cw.execute(
   248         rset = self._cw.execute(
   249             'Any R,C,TT,K,D,A,RN,TTN ORDERBY RN '
   249             'Any R,C,TT,K,D,A,RN,TTN ORDERBY RN '
   250             'WHERE A is CWRelation, A description D, A composite K?, '
   250             'WHERE A is CWRelation, A description D, A composite K, '
   251             'A relation_type R, R name RN, A to_entity TT, TT name TTN, '
   251             'A relation_type R, R name RN, A to_entity TT, TT name TTN, '
   252             'A cardinality C, A from_entity S, S eid %(x)s',
   252             'A cardinality C, A from_entity S, S eid %(x)s',
   253             {'x': entity.eid})
   253             {'x': entity.eid})
   254         self.wview('editable-table', rset, 'null', displayfilter=True,
   254         self.wview('editable-table', rset, 'null', displayfilter=True,
   255                    displaycols=range(6), mainindex=5)
   255                    displaycols=range(6), mainindex=5)
   256         rset = self._cw.execute(
   256         rset = self._cw.execute(
   257             'Any R,C,TT,K,D,A,RN,TTN ORDERBY RN '
   257             'Any R,C,TT,K,D,A,RN,TTN ORDERBY RN '
   258             'WHERE A is CWRelation, A description D, A composite K?, '
   258             'WHERE A is CWRelation, A description D, A composite K, '
   259             'A relation_type R, R name RN, A from_entity TT, TT name TTN, '
   259             'A relation_type R, R name RN, A from_entity TT, TT name TTN, '
   260             'A cardinality C, A to_entity O, O eid %(x)s',
   260             'A cardinality C, A to_entity O, O eid %(x)s',
   261             {'x': entity.eid})
   261             {'x': entity.eid})
   262         self.wview('editable-table', rset, 'null', displayfilter=True,
   262         self.wview('editable-table', rset, 'null', displayfilter=True,
   263                    displaycols=range(6), mainindex=5)
   263                    displaycols=range(6), mainindex=5)