141 # global schema view ########################################################### |
141 # global schema view ########################################################### |
142 |
142 |
143 class SchemaView(tabs.TabsMixin, StartupView): |
143 class SchemaView(tabs.TabsMixin, StartupView): |
144 """display schema information (graphically, listing tables...) in tabs""" |
144 """display schema information (graphically, listing tables...) in tabs""" |
145 __regid__ = 'schema' |
145 __regid__ = 'schema' |
146 title = _('instance schema') |
146 title = _('data model schema') |
147 tabs = [_('schema-diagram'), _('schema-entity-types'), |
147 tabs = [_('schema-diagram'), _('schema-entity-types'), |
148 _('schema-relation-types')] |
148 _('schema-relation-types')] |
149 default_tab = 'schema-diagram' |
149 default_tab = 'schema-diagram' |
150 |
150 |
151 def call(self): |
151 def call(self): |
152 self.w(u'<h1>%s</h1>' % self._cw._('Schema of the data model')) |
152 self.w(u'<h1>%s</h1>' % self._cw._(self.title)) |
153 self.render_tabs(self.tabs, self.default_tab) |
153 self.render_tabs(self.tabs, self.default_tab) |
154 |
154 |
155 |
155 |
156 class SchemaImageTab(StartupView): |
156 class SchemaImageTab(StartupView): |
157 __regid__ = 'schema-diagram' |
157 __regid__ = 'schema-diagram' |