Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
tev
plugin_event
Commits
f8b7aa47
Commit
f8b7aa47
authored
Jan 28, 2015
by
LE GAC Renaud
Browse files
Clean and rename the defaults values files.
parent
87cf1c06
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
44 deletions
+8
-44
models/myseeds.py.off
models/myseeds.py.off
+0
-36
models/ux0_defaults.py.off
models/ux0_defaults.py.off
+8
-8
No files found.
models/myseeds.py.off
deleted
100644 → 0
View file @
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')
models/defaults.py.off
→
models/
ux0_
defaults.py.off
View file @
f8b7aa47
...
...
@@ -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)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment