Commit d60bb213 authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Add tool nodes for software version and database schema.

parent 733b4d4e
......@@ -6,3 +6,18 @@ def index():
return LOAD('plugin_dbui', 'index', vars=request.vars)
def schema():
""" expose http://.../default/schema and display the database schema.
return IMG(_src=URL("static", "database.png"), _width="99%")
def versions():
""" expose http://.../default/versions and show software versions.
dbui = local_import('plugin_dbui')
return dbui.get_versions()
......@@ -61,6 +61,7 @@
'budgets': 'budgets',
'careers': 'carrières',
'categories': 'catégories',
'database schema': 'database schema',
'enter a number between %(min)g and %(max)g': 'enter a number between %(min)g and %(max)g',
'enter an integer between %(min)g and %(max)g': 'enter an integer between %(min)g and %(max)g',
'enter date as %(format)s': 'enter date as %(format)s',
......@@ -69,6 +70,7 @@
'levels': 'niveaux',
'organizations': 'organisations',
'people': 'personnel',
'plugin not install': 'plugin not install',
'projects': 'projets',
'responsabilities': 'responsabilités',
'select entries for the category': 'select entries for the category',
......@@ -91,4 +93,6 @@
'select people with a first name containing': 'select people with a first name containing',
'teams': 'équipes',
'undefined': 'undéfini',
'unknown': 'unknown',
'versions': 'versions',
......@@ -130,9 +130,15 @@ gridNode.add_children(db.tables, func=configurator)
# The tool node of the navigation tree
schemaNode = dbui.Panel(autoLoad='/'+request.application+'/default/schema')
versionNode = dbui.Panel(autoLoad='/'+request.application+'/default/versions')
toolNode = dbui.Node(T('Tools'))
toolNode.add_child(T('database schema'), schemaNode)
toolNode.add_child(T('versions'), versionNode)
# The viewport with its navigation tree
title = 'Software versions'
response.write(P(title, _class="my-p my-small-cap my-large"))
table = TABLE(TR(TD("web2py", _class="my-td"), TD(web2py, _class="my-td")),
TR(TD("dbui", _class="my-td"), TD(dbui, _class="my-td")),
TR(TD("extjs", _class="my-td"), TD(extjs, _class="my-td")),
TR(TD("mathjax", _class="my-td"), TD(mathjax, _class="my-td")),
TR(TD(request.application, _class="my-td"), TD(myapp, _class="my-td")),
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment