Commit 9c007b91 authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Add the About and documentation pages.

parent 5d43ab1a
""" 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["png_db"] = URL('static', 'docs/database.png')
return di
@auth.requires_login()
def index():
......@@ -17,13 +37,6 @@ 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", "docs/database.png"), _height="99%")
def user():
"""exposes:
http://..../[app]/default/user/login
......
......@@ -4,6 +4,7 @@
'%s in %s': '%s en %s',
'%Y-%m-%d': '%Y-%m-%d',
'%Y-%m-%d %H:%M:%S': '%Y-%m-%d %H:%M:%S',
'about': 'à propos',
'Add a new history line %i': 'Add a new history line %i',
'Add a new person successfully': 'Une nouvelle personne a été ajouté',
'Add person': 'Ajouter une personne',
......@@ -50,6 +51,7 @@
'Definition': 'Définition',
'Demanded': 'Demandé',
'Description': 'Description',
'documentations': 'documentations',
'Domain': 'Domaine',
'Domaine': 'Domaine',
'Duration': 'Durée',
......
......@@ -25,6 +25,19 @@ casNode = dbui.Node(T('CAS'))
configurator = lambda tablename: dbui.to_gridPanel(db[tablename])
casNode.add_children(db.tables, func=configurator, hidden=hidden_tables)
#
# Help node
#
aboutLeaf = dbui.Panel(autoLoad=URL('default', 'about'), autoScroll=True)
documentationsLeaf = dbui.Panel(autoLoad=URL('default', 'documentations'), autoScroll=True)
versionLeaf = dbui.Panel(autoLoad=URL('default', 'versions'))
helpNode = dbui.Node(T('Help'))
helpNode.add_child(T('about'), aboutLeaf)
helpNode.add_child(T('documentations'), documentationsLeaf)
helpNode.add_child(T('versions'), versionLeaf)
helpNode.sort_children()
#
# grid node
#
......@@ -67,17 +80,6 @@ reportNode.add_child(T('List of responsibilities'), respLeaf)
reportNode.add_child(T('List of trainee'), traineeLeaf)
reportNode.sort_children()
#
# tool node
#
schemaLeaf = dbui.Panel(autoLoad=URL('default', 'schema'))
versionLeaf = dbui.Panel(autoLoad=URL('default', 'versions'))
helpNode = dbui.Node(T('Help'))
helpNode.add_child(T('database schema'), schemaLeaf)
helpNode.add_child(T('versions'), versionLeaf)
helpNode.sort_children()
#
# Wizards node
#
......
<html>
<head></head>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css">
.my-h2,
.my-li,
.my-p,
.my-ul {font-family: Liberation Sherif, Sherif;
font-size: 11px;
list-style-type: none;}
.my-h2 {font-family: Liberation Sans, Sans;
margin-bottom: 2ex;
margin-left: 3%;
margin-top: 3ex;}
.my-h3 {font-family: Liberation Sans, Sans;
margin-left: 3%;
margin-top: 3ex;}
.my-li {margin-left: 9%;
margin-right: 9%;
text-align: justify;}
.my-p {margin-left: 3%;
margin-right: 10%;
text-align: justify;}
.my-small-cap {font-variant: small-caps;}
</style>
</head>
<body>
<h2>dbui plugin</h2>
<p>Allow to developp a database application in the
<a href="http://www.web2py.com/">web2py</a> framework using
the javascript librairy
<a href="http://www.sencha.com/products/js/">extjs</a>.</p>
<p>Once the database model is setup,
the plugin handles all basic widgets
to manipulate the data, resolving foreign keys.</p>
<h3>Features</h3>
<ul>
<li>Produce form and grid for each table defined in the model.</li>
<li>Resolve the relation (foreign key) in form and grid widgets.
when define in the model.</li>
<li>Context menu to create, add, delete and duplicate records.</li>
<li>Embedded powerfull mechasnism to filter content of a grid</li>
<li>Content of each table can be exported as a CSV file</li>
<li>Mechanisms to custom the application and to add new widgets.</li>
<h2 class="my-h2 my-small-cap">Gestion des finances</h2>
<p class="my-p">Permet de gérer les resources humaine d'une équipes ou d'un projet.
Il permet d'extraire des listes et des métriques.</p>
<h3 class="my-h3 my-small-cap">Composants logiciel open source</h3>
<p class="my-p">Ce logiciel s'appuit sur les logiciels open source suivant :</p>
<br>
<ul class="my-ul">
<li class="my-li">
<a href="http://www.sencha.com/" target="_blank">
Ext JS
</a>
</li>
<li class="my-li">
<a href="https://marprod.in2p3.fr/plugin_dbui_book" target="_blank">
plugin dbui
</a>
</li>
<li class="my-li">
<a href="http://www.python.org/" target="_blank">
Python
</a>
</li>
<li class="my-li">
<a href="http://web2py.com/" target="_blank">
Web2py
</a>
</li>
</ul>
<h3>Author</h3>
<p>R. Le Gac</p>
<h3>Licence</h3>
This software is distributed under the Open Source license CeCILL.
<h3 class="my-h3 my-small-cap">Auteur</h3>
<ul class="my-ul">
<li class="my-li">Renaud Le Gac</li>
<ul>
<h3 class="my-h3 my-small-cap">Contributeurs</h3>
<h3 class="my-h3 my-small-cap">Licence</h3>
<p class="my-p">Ce logiciel est distribué sous la licence opence source
<a href="http://www.cecill.info/" target="_blank">CeCILL</a>.</p>
<br>
&copy; 2010 - 2011 R. Le Gac
<p class="my-p">&copy; 2010 - 2013 Renaud Le Gac</p>
</body>
</html>
\ No newline at end of file
......@@ -2,7 +2,9 @@
HEAD
- Rename field stage_xxx as trainee_xxx
- Minor polishing of the interface
- Minor polishing of the interface.
- Add the logic for user loggin.
- Add the help page documentation and about.
0.2.0 (Feb 2013)
- Migrate to plugin_dbui 0.4.10.1 to develop filter on date.
......
Not yet implemented
\ No newline at end of file
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css">
.my-h2,
.my-li,
.my-p,
.my-ul {font-family: Liberation Sherif, Sherif;
font-size: 11px;
list-style-type: disc;}
.my-h2 {font-family: Liberation Sans, Sans;
margin-bottom: 2ex;
margin-left: 3%;
margin-top: 3ex;}
.my-h3 {font-family: Liberation Sans, Sans;
margin-bottom: 2ex;
margin-left: 3%;
margin-top: 3ex;}
.my-li {margin-left: 9%;
margin-right: 9%;
text-align: justify;}
.my-p {margin-left: 3%;
margin-right: 10%;
text-align: justify;}
.my-small-cap {font-variant: small-caps;}
</style>
</head>
<body>
<h2 class="my-h2 my-small-cap">Documentations</h2>
<ul class="my-ul">
<li class="my-li">
<a href="{{=png_db}}" target="_blank">Schéma</a> de la base de donnée
</li>
</ul>
<h3 class="my-h3 my-small-cap">Manuel utilisateurs</h3>
<ul class="my-ul">
<li class="my-li">
<a href="https://marprod.in2p3.fr/dbui_book/default/chapter/29" target="_blank">
plugin dbui
</a>
</li>
<li class="my-li">
<a href="http://web2py.com/book" target="_blank">
web2py
</a>
</li>
</ul>
<h3 class="my-h3 my-small-cap">Documentation du code python (epydoc)</h3>
<ul class="my-ul">
<li class="my-li">
<a href="{{=epydoc_application}}" target="_blank">
track teams
</a>
</li>
<li class="my-li">
<a href="{{=epydoc_dbui}}" target="_blank">
plugin dbui
</a>
</li>
<li class="my-li">
<a href="http://www.web2py.com/examples/static/epydoc/index.html" target="_blank">
web2py
</a>
</li>
</ul>
<h3 class="my-h3 my-small-cap">Documentation du code javascript</h3>
<ul class="my-ul">
<li class="my-li">
<a href="http://docs.sencha.com/ext-js/3-4/" target="_blank">
Ext JS
</a>
</li>
<li class="my-li">
plugin dbui
</li>
</ul>
</body>
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