-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsettings.py
128 lines (100 loc) · 5.13 KB
/
settings.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
# -*- coding: UTF-8 -*-
MAIN_ENTITY_LEVEL = 'comunidad'
MAIN_ENTITY_NAME = 'Navarra'
BUDGET_LOADER = 'NavarraBudgetLoader'
FEATURED_PROGRAMMES = ['3123', '231B', '3341', '2411', '4679']
OVERVIEW_INCOME_NODES = [
{
'nodes': [['10', '100']],
'label.es': 'Impuesto sobre la renta de las personas físicas',
'label.eu': 'Pertsona fisikoen errentaren gaineko zerga',
'link_id': '10'
},
'21',
{
'nodes': [['22', '220']],
'label.es': 'Impuestos especiales',
'label.eu': 'Zerga bereziak',
'link_id': '22'
},
{
'nodes': [['10', '101']],
'label.es': 'Impuesto sobre sociedades',
'label.eu': 'Sozietateen gaineko zerga',
'link_id': '10'
},
]
OVERVIEW_EXPENSE_NODES = [
'31',
'32',
'23',
{
'nodes': [['94', '9411']],
'label.es': 'Convenio económico con el Estado',
'label.eu': 'Hitzarmen Ekonomikoa Estatuarekin',
'link_id': '94'
},
{
'nodes': [['94', '9422'], ['94', '9421']],
'label.es': 'Participación de las entidades locales, Fondo de Haciendas Locales',
'label.eu': 'Toki entitateen parte-hartzea, Toki Ogasunen Funtsa',
'link_id': '94'
},
{
'nodes': '95',
'label.es': 'Intereses',
'label.eu': 'Interesak'
}
]
# How aggresive should the Sankey diagram reorder the nodes. Default: 0.79 (Optional)
# Note: 0.5 usually leaves nodes ordered as defined. 0.95 sorts by size (decreasing).
OVERVIEW_RELAX_FACTOR = 0.15
# Treemaps minimum height or width to show labels. Default: 70 (Optional)
TREEMAP_LABELS_MIN_SIZE = 30
# Treemap minimum font size. Default: 11 (Optional)
TREEMAP_LABELS_FONT_SIZE_MIN = 7
# Show Payments section in menu & home options. Default: False.
# SHOW_PAYMENTS = True
# Show Tax Receipt section in menu & home options. Default: False.
SHOW_TAX_RECEIPT = True
# Show Counties & Towns links in Policies section in menu & home options. Default: False.
# SHOW_COUNTIES_AND_TOWNS = False
# Show an extra tab with institutional breakdown. Default: True.
# SHOW_INSTITUTIONAL_TAB = False
# Show an extra tab with funding breakdown (only applicable to some budgets). Default: False.
# SHOW_FUNDING_TAB = False
# Show Subtotals panel in Overview. Default: False
# SHOW_OVERVIEW_SUBTOTALS = True
# Calculate budget indicators (True), or show/hide the ones hardcoded in HTML (False). Default: True.
# CALCULATE_BUDGET_INDICATORS = False
# Show an extra column with actual revenues/expenses. Default: True.
# Warning: the execution data still gets shown in the summary chart and in downloads.
#SHOW_ACTUAL = True
# Should we group elements at the economic subheading level, or list all of them,
# grouping by uid?. Default: True. (i.e. group by uid, show all elements)
BREAKDOWN_BY_UID = False
# Include financial income/expenditures in overview and global policy breakdowns. Default: False.
INCLUDE_FINANCIAL_CHAPTERS_IN_BREAKDOWNS = False
# Search in entity names. Default: True.
SEARCH_ENTITIES = False
# Supported languages. Default: ('es', 'Castellano')
LANGUAGES = (
('es', 'Castellano'),
('eu', 'Euskera'),
)
# Plausible data domain. Default: ''
PLAUSIBLE_DOMAIN = 'presupuesto.navarra.es'
# Setup Data Source Budget link
DATA_SOURCE_BUDGET = 'https://datosabiertos.navarra.es/es/dataset?q=presupuestos&sort=score+desc%2C+metadata_modified+desc'
# Setup Data Source Population link
DATA_SOURCE_POPULATION = 'https://www.navarra.es/AppsExt/GN.InstitutoEstadistica.Web/consulta.aspx?TC=1'
# Setup Data Source Inflation link
DATA_SOURCE_INFLATION = 'https://www.navarra.es/AppsExt/GN.InstitutoEstadistica.Web/informacionestadistica.aspx?R=1&E=1'
# Setup Main Entity Web Url
MAIN_ENTITY_WEB_URL = 'https://www.navarra.es/home_es/Navarra/'
# Setup Main Entity Legal Url (if empty we hide the link)
MAIN_ENTITY_LEGAL_URL = 'https://www.navarra.es/home_es/Aviso/avisoLegal.htm'
# External URL for Cookies Policy (if empty we use out template page/cookies.html)
#COOKIES_URL = 'https://www.santiagodecompostela.gal/avisolegal.php?lg=gal'
# Allow overriding of default treemap color scheme
# COLOR_SCALE = [ '#1f77b4', '#ff7f0e', '#2ca02c', '#d62728', '#9467bd', '#8c564b', '#e377c2', '#e7969c', '#bcbd22', '#17becf' ]