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

Clean and rename the defaults values files.

parent 87cf1c06
# -*- coding: utf-8 -*-
""" mydefaults
Defined constants specific to the track_org application.
It ease the cold start and can be removed at any time.
"""
if db(db.people_categories.id).count() == 1:
db.people_categories.insert(id=2, code='CR2')
db.people_categories.insert(id=3, code='CR1')
db.people_categories.insert(id=4, code='DR2')
db.people_categories.insert(id=5, code='DR1')
db.people_categories.insert(id=7, code='MRT')
db.people_categories.insert(id=8, code='ATER')
db.people_categories.insert(id=9, code='MC')
db.people_categories.insert(id=10, code='PR')
db.people_categories.insert(id=11, code='EMERITE')
db.people_categories.insert(id=12, code='AI')
db.people_categories.insert(id=13, code='IR2')
db.people_categories.insert(id=14, code='IR1')
db.people_categories.insert(id=15, code='IR0')
db.people_categories.insert(id=16, code='L3')
db.people_categories.insert(id=17, code='M1')
db.people_categories.insert(id=18, code='M2')
db.people_categories.insert(id=19, code='PHD')
db.people_categories.insert(id=20, code='ATER')
if db(db.organization_levels.id).count() == 1:
db.organization_levels.insert(id=2, level='international')
db.organization_levels.insert(id=3, level='local')
db.organization_levels.insert(id=4, level='national')
if db(db.teams.id).count() == 1:
db.teams.insert(id=2, team='LHCb', domain='physique des particules')
......@@ -5,24 +5,24 @@
"""
if not db(db.events.id).count():
db.events.insert(id=undef_id, event=undef, category=undef, definition=undef)
db.events.insert(id=undef_id,
event=undef,
category=undef,
definition=undef)
if not db(db.fundings.id).count():
db.fundings.insert(id=undef_id, agency=undef, definition=undef)
if not db(db.organizations.id).count():
db.organizations.insert(id=undef_id, organization=undef)
if not db(db.organization_levels.id).count():
db.organization_levels.insert(id=undef_id, level=undef, definition=undef)
if not db(db.people.id).count():
db.people.insert(id=undef_id, first_name=undef,
last_name=undef,
initials=undef)
if not db(db.people_categories.id).count():
db.people_categories.insert(id=undef_id, code=undef, category=undef, definition=undef)
db.people_categories.insert(id=undef_id,
code=undef,
category=undef,
definition=undef)
if not db(db.projects.id).count():
db.projects.insert(id=undef_id, project=undef)
......
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