web/views/schema.py
changeset 7810 21683b1975e3
parent 7797 a71618a75b53
child 7845 2172978be237
equal deleted inserted replaced
7809:f17440081914 7810:21683b1975e3
   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'
   687 
   687 
   688 class ViewSchemaAction(action.Action):
   688 class ViewSchemaAction(action.Action):
   689     __regid__ = 'schema'
   689     __regid__ = 'schema'
   690     __select__ = yes()
   690     __select__ = yes()
   691 
   691 
   692     title = _("data model schema")
   692     title = _('data model schema')
   693     order = 30
   693     order = 30
   694     category = 'manage'
   694     category = 'manage'
   695 
   695 
   696     def url(self):
   696     def url(self):
   697         return self._cw.build_url(self.__regid__)
   697         return self._cw.build_url(self.__regid__)