web/views/schema.py
branchstable
changeset 5525 c4eee9921e19
parent 5426 0d4853a6e5ee
child 5527 01a7228ab5a0
child 5798 74d9a062965c
equal deleted inserted replaced
5524:2f3d4ca6f7f8 5525:c4eee9921e19
   136 
   136 
   137 class SchemaView(tabs.TabsMixin, StartupView):
   137 class SchemaView(tabs.TabsMixin, StartupView):
   138     """display schema information (graphically, listing tables...) in tabs"""
   138     """display schema information (graphically, listing tables...) in tabs"""
   139     __regid__ = 'schema'
   139     __regid__ = 'schema'
   140     title = _('instance schema')
   140     title = _('instance schema')
   141     tabs = [_('schema-image'), _('schema-entity-types'),
   141     tabs = [_('schema-diagram'), _('schema-entity-types'),
   142             _('schema-relation-types'), _('schema-security')]
   142             _('schema-relation-types'), _('schema-security')]
   143     default_tab = 'schema-image'
   143     default_tab = 'schema-diagram'
   144 
   144 
   145     def call(self):
   145     def call(self):
   146         self.w(u'<h1>%s</h1>' % _('Schema of the data model'))
   146         self.w(u'<h1>%s</h1>' % _('Schema of the data model'))
   147         self.render_tabs(self.tabs, self.default_tab)
   147         self.render_tabs(self.tabs, self.default_tab)
   148 
   148 
   149 
   149 
   150 class SchemaImageTab(StartupView):
   150 class SchemaImageTab(StartupView):
   151     __regid__ = 'schema-image'
   151     __regid__ = 'schema-diagram'
   152 
   152 
   153     def call(self):
   153     def call(self):
   154         self.w(_(u'<div>This schema of the data model <em>excludes</em> the '
   154         self.w(_(u'<div>This schema of the data model <em>excludes</em> the '
   155                  u'meta-data, but you can also display a <a href="%s">complete '
   155                  u'meta-data, but you can also display a <a href="%s">complete '
   156                  u'schema with meta-data</a>.</div>')
   156                  u'schema with meta-data</a>.</div>')