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

Add the table application (contains configuration parameters).

parent bc6a9959
......@@ -106,6 +106,7 @@
'Configure lists': 'Configurer les listes',
'Configure metrics': 'Configurer les métriques',
'Configure rapports': 'Configurer les rapports',
'Configure the application': "Configurer l'application",
'contains': 'contiens',
'Controller': 'Controller',
'controllers': 'contrôleurs',
......@@ -319,6 +320,8 @@
'projects': 'projets',
'Projects': 'Projets',
'Projets': 'Projets',
'properties': 'propriétés',
'Property': 'Propriété',
'Publication': 'Publication',
'Publication category associated to the found records.': 'Publication category associated to the found records.',
'Publication category associated to the record.': 'Catégorie associée à cet enregistrement.',
......@@ -472,6 +475,7 @@
'users': 'utilisateurs',
'Usual': 'Usual',
'Validate': 'Valider',
'Value': 'Valeur',
'value already in database or empty': 'value already in database or empty',
'value not allowed': 'value not allowed',
'value not in database': 'value not in database',
......
......@@ -62,7 +62,8 @@ MODE_LOAD_IN_DB = T('load in the database')
# COMMON CONFIGURATION FOR FORMS AND GRIDS
#
#-------------------------------------------------------------------------------
tables = ['auth_group',
tables = ['application',
'auth_group',
'auth_membership',
'auth_user',
'authors_roles',
......
# -*- coding: utf-8 -*-
""" application
"""
db.define_table("application",
Field("property", "string", length=255, notnull=True, unique=True),
Field("value", "string", length=255),
Field("definition", "text", notnull=True),
migrate="application.table")
# -*- coding: utf-8 -*-
""" application
Contains variables to configure the applications
"""
#-------------------------------------------------------------------------------
#
# FIELDS CONFIGURATiON
#
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
#
# FORM CONFIGURATiON
#
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
#
# GRID CONFIGURATiON
#
#-------------------------------------------------------------------------------
gridModifier = dbui.GridModifier('application')
gridModifier.configure_column('property', width=30)
#-------------------------------------------------------------------------------
#
# STORE CONFIGURATiON
#
#-------------------------------------------------------------------------------
storeModifier = dbui.StoreModifier('application')
storeModifier.orderby(db.application.property)
......@@ -23,7 +23,18 @@ if "auth" in globals() and session.role == ADMIN:
casNode.add_child(T('users'), to_grid('auth_user'))
casNode.add_child(T('groups'), to_grid('auth_group'))
casNode.add_child(T('relation user / groups'), to_grid('auth_membership'))
#-------------------------------------------------------------------------------
#
# CONFIGURE APPLICATION
#
#-------------------------------------------------------------------------------
confAppNode = None
if session.role == ADMIN:
confAppNode = Node(T('Configure the application'))
confAppNode.add_child(T('properties'), to_grid('application'))
#-------------------------------------------------------------------------------
#
# CONFIGURE HARVESTERS
......@@ -195,7 +206,8 @@ if session.role in (ADMIN, USER):
#-------------------------------------------------------------------------------
nodes = [helpNode,
casNode,
wizardNode,
wizardNode,
confAppNode,
confHarvesterNode,
confListNode,
confMetricNode,
......
......@@ -4,6 +4,8 @@ HEAD
- Migrate to plugin_dbui 0.6.1.0 and web2py 2.9.5
- Define the length of each string field to garanty web2py compatibility.
- Use the controller plugin_dbui/about, documentation and versions.
- Add the field 'origin' in publications.
- Add the table 'application' for configuration parameters.
0.8.4 (Feb 2014)
- Migrate to plugin_dbui 0.6.0.11, Ext JS 4.2.1 and MathJax 2.0.3.
......
static/docs/database.png

132 KB | W: | H:

static/docs/database.png

132 KB | W: | H:

static/docs/database.png
static/docs/database.png
static/docs/database.png
static/docs/database.png
  • 2-up
  • Swipe
  • Onion skin
This diff is collapsed.
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