web/views/schema.py
changeset 2476 1294a6bdf3bf
parent 2436 44b2eea35efa
child 2617 89c62b855f2e
equal deleted inserted replaced
2475:b6753521129d 2476:1294a6bdf3bf
    35 
    35 
    36 # global schema view ###########################################################
    36 # global schema view ###########################################################
    37 
    37 
    38 class SchemaView(tabs.TabsMixin, StartupView):
    38 class SchemaView(tabs.TabsMixin, StartupView):
    39     id = 'schema'
    39     id = 'schema'
    40     title = _('application schema')
    40     title = _('instance schema')
    41     tabs = [_('schema-text'), _('schema-image')]
    41     tabs = [_('schema-text'), _('schema-image')]
    42     default_tab = 'schema-text'
    42     default_tab = 'schema-text'
    43 
    43 
    44     def call(self):
    44     def call(self):
    45         """display schema information"""
    45         """display schema information"""
    57                  u'meta-data, but you can also display a <a href="%s">complete '
    57                  u'meta-data, but you can also display a <a href="%s">complete '
    58                  u'schema with meta-data</a>.</div>')
    58                  u'schema with meta-data</a>.</div>')
    59                % xml_escape(self.build_url('view', vid='schemagraph', skipmeta=0)))
    59                % xml_escape(self.build_url('view', vid='schemagraph', skipmeta=0)))
    60         self.w(u'<img src="%s" alt="%s"/>\n' % (
    60         self.w(u'<img src="%s" alt="%s"/>\n' % (
    61             xml_escape(self.req.build_url('view', vid='schemagraph', skipmeta=1)),
    61             xml_escape(self.req.build_url('view', vid='schemagraph', skipmeta=1)),
    62             self.req._("graphical representation of the application'schema")))
    62             self.req._("graphical representation of the instance'schema")))
    63 
    63 
    64 
    64 
    65 class SchemaTabTextView(StartupView):
    65 class SchemaTabTextView(StartupView):
    66     id = 'schema-text'
    66     id = 'schema-text'
    67 
    67