schemaviewer.py
branchstable
changeset 2996 866a2c135c33
parent 2650 18aec79ec3a3
child 3689 deb13e88e037
equal deleted inserted replaced
2995:4ef565c1d183 2996:866a2c135c33
   102 
   102 
   103     def visit_entityschema(self, eschema, skiptypes=()):
   103     def visit_entityschema(self, eschema, skiptypes=()):
   104         """get a layout for an entity schema"""
   104         """get a layout for an entity schema"""
   105         etype = eschema.type
   105         etype = eschema.type
   106         layout = Section(children=' ', klass='clear')
   106         layout = Section(children=' ', klass='clear')
   107         layout.append(Link(etype,' ' , id=etype)) # anchor
   107         layout.append(Link(etype,' ' , id=etype)) # anchor
   108         title = Link(self.eschema_link_url(eschema), etype)
   108         title = Link(self.eschema_link_url(eschema), etype)
   109         boxchild = [Section(children=(title, ' (%s)'% eschema.display_name(self.req)), klass='title')]
   109         boxchild = [Section(children=(title, ' (%s)'% eschema.display_name(self.req)), klass='title')]
   110         table = Table(cols=4, rheaders=1,
   110         table = Table(cols=4, rheaders=1,
   111                       children=self._entity_attributes_data(eschema))
   111                       children=self._entity_attributes_data(eschema))
   112         boxchild.append(Section(children=(table,), klass='body'))
   112         boxchild.append(Section(children=(table,), klass='body'))