Ajouté les instructions pour patcher les permissions des eggs
[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
ab114095 4from settings import SITE_ROOT_URL, MEDIA_URL
5
7cf64fde
CR
6configuration = {
7 'max_actualite': 100,
c4c5de1b 8 'accueil_actualite': 4,
91e0aefb 9 'accueil_chercheur': 10,
c4c5de1b 10 'accueil_evenement': 4,
91e0aefb 11 'accueil_ressource': 4,
12 'accueil_sites': 4,
7cf64fde
CR
13 'nombre_par_page_actualite': 10,
14 'resultats_par_page': 8, # pas changeable a cause de google
7cf64fde 15 'engin_recherche': 'sep',
b7a741ad 16 'calendrier_publique': 'https://sep-caldav.auf.org/caldav.php/sep/home',
7cf64fde
CR
17}
18
19#####
20# Meta fields
77427924 21SERVER = 'server'
23b5b3d5 22LAST_CHECKSUM = 'last_checksum'
23LAST_UPDATE = 'last_update'
7cf64fde
CR
24TITLE = 'title'
25ALT_TITLE = 'alt_title'
26CREATOR = 'creator'
27CONTRIBUTOR = 'contributor'
28DESCRIPTION = 'description'
29ABSTRACT = 'abstract'
30SUBJECT = 'subject'
31PUBLISHER = 'publisher'
32DATE_CREATION = 'creation'
33DATE_ISSUED = 'issued'
34DATE_MODIFIED = 'modified'
35TYPE = 'type'
36FORMAT = 'format'
37IDENTIFIER = 'identifier'
38ISBN = 'isbn'
39URI = 'uri'
40SOURCE = 'source'
41LANGUAGE = 'language'
42ORIG_LANG = 'orig_lang'
43
44
77427924 45META = {SERVER: {'type': 'text'},
2874e8be 46 TITLE: {'type': 'array', 'text_search': True},
7cf64fde
CR
47 ALT_TITLE: {'type': 'text', 'text_search': True},
48 CREATOR: {'type': 'array', 'text_search': True},
49 CONTRIBUTOR: {'type': 'array', 'text_search': True},
50 DESCRIPTION: {'type': 'text', 'text_search': True},
51 ABSTRACT: {'type': 'text', 'text_search': True},
52 SUBJECT: {'type': 'array', 'text_search': True},
53 PUBLISHER: {'type': 'array'},
54 DATE_CREATION: {'type': 'date'},
55 DATE_ISSUED: {'type': 'date'},
56 DATE_MODIFIED: {'type': 'date'},
57 TYPE: {'type': 'array'},
58 FORMAT: {'type': 'array'},
59 IDENTIFIER: {'type': 'text'},
60 ISBN: {'type': 'text'},
61 URI: {'type': 'text', 'unique': True},
62 SOURCE: {'type': 'text'},
63 LANGUAGE: {'type': 'array'},
64 ORIG_LANG: {'type': 'array'}
65 }