source: trunk/aeres/scripts/define_loceanaffectation.py @ 195

Last change on this file since 195 was 195, checked in by pinsard, 12 years ago

cleanings

File size: 1.4 KB
Line 
1#!/usr/bin/env python
2# -*- coding: iso-8859-1 -*-
3
4__docformat__ = "restructuredtext en"
5__revision__ = "$Id$"
6
7"""
8===========================
9define_loceanaffectation.py
10===========================
11
12DESCRIPTION
13===========
14
15define affectation
16
17SEE ALSO
18========
19
20EXAMPLES
21========
22
23::
24
25 define_loceanaffectation.py
26
27
28TODO
29====
30
31test
32
33code administration
34
35coding rules (pylint)
36
37verbose
38
39EVOLUTIONS
40==========
41
42$Id$
43
44$URL$
45
46- fplod 20120427
47
48  * header
49
50"""
51
52def define_loceanaffectation():
53    """define affectation for :
54         - search in bibtex file (in loceanaffectation field)
55         - give a element of HTML filename (no diacritical and no punctation)
56
57    TODO :
58    automation of no diacritical and no punctation transformation
59
60    dictionnary instead of list
61    """
62    affectation_bibtool = []
63    affectation_title = []
64   
65    affectation_bibtool.append("mnhn")
66    affectation_title.append("mnhn")
67    affectation_bibtool.append("cnrs")
68    affectation_title.append("cnrs")
69    affectation_bibtool.append("ird")
70    affectation_title.append("ird")
71    affectation_bibtool.append("upmc")
72    affectation_title.append("upmc")
73    affectation_bibtool.append("uvsq")
74    affectation_title.append("uvsq")
75
76    return affectation_title, affectation_bibtool
77
78
79# Run main, if called from the command line
80if __name__ == '__main__':
81    title, bibtool = define_loceanaffectation()
82    print(' title : %s , bibtool : %s' % (title,bibtool)) 
83
84
Note: See TracBrowser for help on using the repository browser.