CRUD evenement + admin
[auf_savoirs_en_partage_django.git] / auf_savoirs_en_partage / savoirs / globals.py
CommitLineData
7cf64fde
CR
1#!/usr/bin/env python
2# -*- encoding: utf-8 -*-
3
4configuration = {
5 'max_actualite': 100,
6 'accueil_actualite': 5,
6e001443 7 'accueil_chercheur': 5,
8 'accueil_sites': 5,
7cf64fde
CR
9 'nombre_par_page_actualite': 10,
10 'resultats_par_page': 8, # pas changeable a cause de google
11 'accueil_evenement': 10,
12 'engin_recherche': 'sep',
13 'google_xml': "http://www.savoirsenpartage.auf.org/recherche.xml?%s",
b7a741ad 14 'calendrier_publique': 'https://sep-caldav.auf.org/caldav.php/sep/home',
7cf64fde
CR
15}
16
17#####
18# Meta fields
77427924 19SERVER = 'server'
23b5b3d5 20LAST_CHECKSUM = 'last_checksum'
21LAST_UPDATE = 'last_update'
7cf64fde
CR
22TITLE = 'title'
23ALT_TITLE = 'alt_title'
24CREATOR = 'creator'
25CONTRIBUTOR = 'contributor'
26DESCRIPTION = 'description'
27ABSTRACT = 'abstract'
28SUBJECT = 'subject'
29PUBLISHER = 'publisher'
30DATE_CREATION = 'creation'
31DATE_ISSUED = 'issued'
32DATE_MODIFIED = 'modified'
33TYPE = 'type'
34FORMAT = 'format'
35IDENTIFIER = 'identifier'
36ISBN = 'isbn'
37URI = 'uri'
38SOURCE = 'source'
39LANGUAGE = 'language'
40ORIG_LANG = 'orig_lang'
41
42
77427924 43META = {SERVER: {'type': 'text'},
44 TITLE: {'type': 'text', 'text_search': True},
7cf64fde
CR
45 ALT_TITLE: {'type': 'text', 'text_search': True},
46 CREATOR: {'type': 'array', 'text_search': True},
47 CONTRIBUTOR: {'type': 'array', 'text_search': True},
48 DESCRIPTION: {'type': 'text', 'text_search': True},
49 ABSTRACT: {'type': 'text', 'text_search': True},
50 SUBJECT: {'type': 'array', 'text_search': True},
51 PUBLISHER: {'type': 'array'},
52 DATE_CREATION: {'type': 'date'},
53 DATE_ISSUED: {'type': 'date'},
54 DATE_MODIFIED: {'type': 'date'},
55 TYPE: {'type': 'array'},
56 FORMAT: {'type': 'array'},
57 IDENTIFIER: {'type': 'text'},
58 ISBN: {'type': 'text'},
59 URI: {'type': 'text', 'unique': True},
60 SOURCE: {'type': 'text'},
61 LANGUAGE: {'type': 'array'},
62 ORIG_LANG: {'type': 'array'}
63 }