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

Add technical tables.

parent f19e81fa
......@@ -4,7 +4,7 @@
'%s in %s': '%s en %s',
'%Y-%m-%d': '%Y-%m-%d',
'Age': 'Age',
'Agencies': 'Agencies',
'Agencies': 'Agences',
'agencies': 'agences',
'Agency': 'Agence',
'Birth Date': 'Né le',
......@@ -32,6 +32,8 @@
'End Date': 'Date de fin',
'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',
'Event': 'Event',
'events': 'events',
'Executed': 'Executé',
'Filter agencies': 'Filtrer les agences',
'Filter budgets': 'Filtrer les budgets',
......@@ -66,6 +68,7 @@
'Level': 'Niveau',
'levels': 'niveaux',
'Line': 'Ligne',
'lines': 'lines',
'List of hardware': 'Liste de matériel',
'List of people': 'Liste de personne',
'List of people ': 'Liste des personnes ',
......@@ -110,7 +113,7 @@
'teams': 'équipes',
'Time': 'Temps',
'Tools': 'Outils',
'undefined': 'undéfini',
'undefined': 'indéfini',
'unknown': 'unknown',
'Usual': 'Habituel',
'versions': 'versions',
......
......@@ -67,6 +67,21 @@ db.define_table("categories",
Field("definition", "text"),
migrate="categories.table")
db.define_table("events",
Field("event", "string", notnull=True),
Field("definition", "text"),
migrate="events.table")
db.define_table("levels",
Field("level", "string", notnull=True),
Field("definition", "text"),
migrate="levels.table")
db.define_table("lines",
Field("line", "string", notnull=True),
Field("definition", "text"),
migrate="lines.table")
db.define_table("people",
Field("first_name", "string", notnull=True),
Field("last_name", "string", notnull=True),
......
......@@ -10,6 +10,15 @@ if not db(db.agencies.id).count():
if not db(db.categories.id).count():
db.categories.insert(id=undef_id, code=undef, definition=undef)
if not db(db.events.id).count():
db.events.insert(id=undef_id, event=undef, definition=undef)
if not db(db.levels.id).count():
db.levels.insert(id=undef_id, level=undef, definition=undef)
if not db(db.lines.id).count():
db.lines.insert(id=undef_id, line=undef, definition=undef)
if not db(db.organizations.id).count():
db.organizations.insert(id=undef_id, organization=undef, level=undef)
......@@ -19,7 +28,7 @@ if not db(db.people.id).count():
initials=undef)
if not db(db.projects.id).count():
db.projects.insert(id=undef_id, project=undef)
db.projects.insert(id=undef_id, project=undef, agencies=undef)
if not db(db.teams.id).count():
db.teams.insert(id=undef_id, team=undef)
\ No newline at end of file
db.teams.insert(id=undef_id, team=undef, domain=undef)
\ No newline at end of file
......@@ -11,7 +11,6 @@ if db(db.categories.id).count() == 1:
db.categories.insert(id=3, code='CR1')
db.categories.insert(id=4, code='DR2')
db.categories.insert(id=5, code='DR1')
db.categories.insert(id=6, code='POSTDOC')
db.categories.insert(id=7, code='MRT')
db.categories.insert(id=8, code='ATER')
db.categories.insert(id=9, code='MC')
......@@ -27,5 +26,11 @@ if db(db.categories.id).count() == 1:
db.categories.insert(id=19, code='PHD')
db.categories.insert(id=20, code='ATER')
if db(db.levels.id).count() == 1:
db.levels.insert(id=2, level='international')
db.levels.insert(id=3, level='local')
db.levels.insert(id=4, level='national')
if db(db.teams.id).count() == 1:
db.teams.insert(id=2, team='LHCb')
db.teams.insert(id=2, team='LHCb', domain='physique des particules')
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