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

Last change on this file since 322 was 322, checked in by pinsard, 11 years ago

fix for python documentation

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