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')) |