Commit 7780a863 authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Add the database table affiliation_rules.

parent a49cb1c5
docs/db_schema/database.png

167 KB | W: | H:

docs/db_schema/database.png

171 KB | W: | H:

docs/db_schema/database.png
docs/db_schema/database.png
docs/db_schema/database.png
docs/db_schema/database.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -549,4 +549,18 @@
<part>id</part>
</key>
</table>
<table x="642" y="492" name="affiliation_rules">
<row name="id" null="1" autoincrement="1">
<datatype>integer</datatype>
<default>NULL</default></row>
<row name="u" null="0" autoincrement="0">
<datatype>string</datatype>
</row>
<row name="v" null="1" autoincrement="0">
<datatype>string</datatype>
<default>NULL</default></row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
</table>
</sql>
......@@ -25,6 +25,8 @@
'Address of the invenio store where the search is performed.': 'Addresse du site invenio où les recherches sont effectuées.',
'administrators, librairians,...': 'administrateurs, documentalistes,...',
'Affiliation': 'Affiliation',
'affiliation rules': "régles définissant l'affiliation",
'affiliation_rules': "régles définissant l'affiliation",
'Agencies': 'Agences',
'agencies': 'agences',
'agency': 'agence',
......@@ -230,6 +232,7 @@
'Fill': 'Remplir',
'Fill all fields': 'Remplir tous les champs',
'Filter': 'Filtrer',
'Filter affiliation_rules': "Filtrer les régles d'affiliation",
'Filter categories': 'Filtrer les catégories',
'Filter collaborations': 'Filtrer les collaborations',
'Filter countries': 'Filtrer les pays',
......@@ -453,8 +456,8 @@
'Process': 'Analyser',
'Processing time %s seconds': 'Temps de calcul %s seconds',
'Profile': 'Profile',
'project': 'projet',
'Project': 'Projet',
'project': 'projet',
'projects': 'projets',
'Projects': 'Projets',
'Projets': 'Projets',
......@@ -679,6 +682,7 @@
'Transform the preprint into an article': 'Transforme le preprint en article',
'Transform the talk into a proceeding': 'Transforme la présentation orale en actes de conférence',
'Type': 'Type',
'U': 'U',
'Unable to send email': 'Unable to send email',
'undefined': 'indéfini',
'universities': 'universités',
......@@ -704,6 +708,7 @@
'Users can login when the value is equal to true.': 'Les utilisateurs peuvent se logger quand cette valuer est égale à vraie.',
'usual': 'usuel',
'Usual': 'Usuel',
'V': 'V',
'Validate': 'Valider',
'Validated': 'Validé',
'Value': 'Valeur',
......@@ -713,8 +718,8 @@
'Verify Password': 'Verify Password',
'versions': 'versions',
'Vertical': 'Vertical',
'Volume': 'Volume',
'volume': 'volume',
'Volume': 'Volume',
'Volume / pages': 'Volume / pages',
'Volume number is not defined': "Le numéro du volume n'est pas défini",
'Welcome': 'Welcome',
......
......@@ -88,7 +88,8 @@ STORES = ['cds.cern.ch', 'inspirehep.net']
# COMMON CONFIGURATION FOR FORMS AND GRIDS
#
#-------------------------------------------------------------------------------
tables = ['application',
tables = ['affiliation_rules',
'application',
'auth_group',
'auth_membership',
'auth_user',
......
# -*- coding: utf-8 -*-
""" affiliation_rules
"""
db.define_table("affiliation_rules",
Field("u", "string", length=255, notnull=True),
Field("v", "string", length=255, notnull=False),
migrate="affiliation_rules.table")
\ No newline at end of file
# -*- coding: utf-8 -*-
""" affiliation_rules
"""
#-------------------------------------------------------------------------------
#
# FIELDS CONFIGURATiON
#
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
#
# FORM CONFIGURATiON
#
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
#
# GRID CONFIGURATiON
#
#-------------------------------------------------------------------------------
gridModifier = dbui.GridModifier('affiliation_rules')
gridModifier.append_filter(('u', 'contains', T('contains')))
gridModifier.append_filter(('v', 'contains', T('contains')))
gridModifier.configure_filters(plugins=['pFormToolTip'], width=300)
gridModifier.configure_gridWithFilter(selectorTitle=T('Filter'))
# gridModifier.configure(plugins=[{'ptype': 'pGridRowEditorAddWizard',
# 'wizard' :{'xtype': 'xwizardharvester'}}])
#-------------------------------------------------------------------------------
#
# STORE CONFIGURATiON
#
#-------------------------------------------------------------------------------
storeModifier = dbui.StoreModifier('affiliation_rules')
storeModifier.orderby(db.affiliation_rules.u, db.affiliation_rules.v)
......@@ -84,7 +84,7 @@ if session.role == ADMIN:
dataInstituteNode = None
if session.role == ADMIN:
leaves = ('projects', 'teams')
leaves = ('affiliation_rules', 'projects', 'teams')
dataInstituteNode = Node(T('Data institute'))
dataInstituteNode.add_children(leaves, func=to_grid)
......
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