Commit 389d733d authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Migrate to plugin_dbui 0.6.1.10 (lazy_tables, about, documentations,

versions).
parent 05d53937
""" Controllers """
import os
def about():
fn = os.path.join("applications",
request.application,
"static",
"ABOUT.html")
return open(fn, 'rb').read()
def documentations():
di = {}
di["epydoc_dbui"] = URL('static', 'plugin_dbui/docs/epydoc/index.html')
di["epydoc_application"] = URL('static', 'docs/epydoc/index.html')
di["js_mathjax"] = URL('static', 'plugin_mathjax/docs/html/index.html')
di["jsduck_dbui"] = URL('static', 'plugin_dbui/docs/jsduck/index.html')
di["png_db"] = URL('static', 'docs/database.png')
return di
# @auth.requires_login()
def index():
"""Main Controller to run the application launching the plugin dbui.
......@@ -62,11 +39,3 @@ def user():
to decorate functions that need access control
"""
return dict(form=auth())
def versions():
""" expose http://.../default/versions and show software versions.
"""
import plugin_dbui
return plugin_dbui.get_versions()
......@@ -143,6 +143,7 @@
'Id)': 'Id)',
'Id.Count()': 'Id.Count()',
'Initials': 'Initiales',
'install': 'installé',
'Invalid email': 'Invalid email',
'invalid json': 'invalid json',
'Invalid login': 'Invalid login',
......@@ -222,7 +223,7 @@
'Phd Date': 'Phd Date',
'Phd defense date': 'Date de la soutenance de la thèse',
'please input your password again': 'please input your password again',
'plugin not install': 'plugin not install',
'plugin not install': 'greffon pas installé',
'Profile': 'Profile',
'Project': 'Projet',
'project leader,...': 'project leader,...',
......
......@@ -18,7 +18,7 @@ ID_USER, USER, DEF_USER = 2, 'user', 'project leader,...'
#-------------------------------------------------------------------------------
# connection to the database
# try:
# db = DAL(DB_MYSQL, migrate_enabled=MIGRATE, pool_size=10)
# db = DAL(DB_MYSQL, lazy_tables=True, migrate_enabled=MIGRATE, pool_size=10)
# except:
# raise HTTP(500, T("Can't access the MySQL database !!!"))
......@@ -27,7 +27,7 @@ ID_USER, USER, DEF_USER = 2, 'user', 'project leader,...'
# SQLITE database (test)
#
#-------------------------------------------------------------------------------
db = DAL('sqlite://storage.sqlite', migrate_enabled=MIGRATE)
db = DAL('sqlite://storage.sqlite', lazy_tables=True, migrate_enabled=MIGRATE)
#-------------------------------------------------------------------------------
#
......
......@@ -77,9 +77,9 @@ dataPeopleNode.add_child(T('history'), to_grid('history'))
# HELP NODE
#
#-------------------------------------------------------------------------------
aboutLeaf = Panel(autoLoad=URL('default', 'about'), autoScroll=True)
documentationsLeaf = Panel(autoLoad=URL('default', 'documentations'), autoScroll=True)
versionLeaf = Panel(autoLoad=URL('default', 'versions'))
aboutLeaf = Panel(autoLoad=URL('plugin_dbui', 'about'), autoScroll=True)
documentationsLeaf = Panel(autoLoad=URL('plugin_dbui', 'documentations'), autoScroll=True)
versionLeaf = Panel(autoLoad=URL('plugin_dbui', 'versions'))
helpNode = Node(T('Help'))
helpNode.add_child(T('about'), aboutLeaf)
......
......@@ -41,6 +41,11 @@
<p class="my-p">Ce logiciel s'appuit sur les logiciels open source suivant :</p>
<ul class="my-ul">
<li class="my-li">
<a href="http://ace.c9.io/" target="_blank">
Ace
</a>
</li>
<li class="my-li">
<a href="http://www.sencha.com/" target="_blank">
Ext JS
......
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