-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsettings.py
154 lines (113 loc) · 6.08 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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
# -*- coding: UTF-8 -*-
MAIN_ENTITY_LEVEL = 'municipio'
MAIN_ENTITY_NAME = 'Madrid'
BUDGET_LOADER = 'MadridBudgetLoader'
PAYMENTS_LOADER = 'MadridPaymentsLoader'
INVESTMENTS_LOADER = 'MadridInvestmentsLoader'
MAIN_INVESTMENTS_LOADER = 'MadridMainInvestmentsLoader'
MONITORING_LOADER = 'MadridMonitoringLoader'
FEATURED_PROGRAMMES = ['13610', '13510', '16301', '15321', '15210', '23103', '23102', '33401', '33210']
# Use new Sankey visualization or the old one. Default: False
# OVERVIEW_USE_NEW_VIS = True
OVERVIEW_INCOME_NODES = [
{
'nodes': [['11', '113']],
'label.es': 'Impuesto sobre bienes inmuebles de naturaleza urbana',
'label.en': 'Tax on urban real estate',
'link_id': '11'
},
'42',
{
'nodes': [['11', '116']],
'label.es': 'Impuesto sobre incremento del valor de terrenos',
'label.en': 'Tax on land value increases',
'link_id': '11'
},
{
'nodes': ['33'],
'label.es': 'Tasas por la utilización del dominio público',
'label.en': 'Fees for the use of the public domain',
'link_id': '33'
},
{
'nodes': [['30', '303']],
'label.es': 'Servicio de tratamiento de residuos',
'label.en': 'Waste treatment service',
'link_id': '30'
},
]
OVERVIEW_EXPENSE_NODES = ['13', '16', '15', '23', '92', '17', '33', '34', '01']
# 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.5
# Treemaps minimum height or width to show labels. Default: 70 (Optional)
TREEMAP_LABELS_MIN_SIZE = 16
# Treemap minimum font size. Default: 11 (Optional)
TREEMAP_LABELS_FONT_SIZE_MIN = 5
# Show Payments section in menu & home options. Default: False.
SHOW_PAYMENTS = True
# Define if payments year slider is a range (True) or a single year (False). Default: True
PAYMENTS_YEAR_RANGE = False
# Show Investments section in menu & home options. Default: False.
SHOW_INVESTMENTS = True
# Show Main Investments section in menu & home options. Default: False.
SHOW_MAIN_INVESTMENTS = True
# Show Tax Receipt section in menu & home options. Default: False.
# SHOW_TAX_RECEIPT = True
# Show Guided Visit section in menu & home options. Default: False.
SHOW_GUIDED_VISIT = 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 treemap in the Policy page, showing institutional breakdown. Default: False.
# Important: insitutional codes must be consistent along the years, see CONSISTENT_INSTITUTIONAL_CODES.
SHOW_GLOBAL_INSTITUTIONAL_TREEMAP = True
# Show a monitoring section and an extra tab in the Policy page, with budget goals and indicators. Default: False.
SHOW_MONITORING = True
# How many levels to show in the global institutional treemap? Default: 1.
INSTITUTIONAL_MAX_LEVELS = 2
# Show section pages. Still under development, see #347. Default: False.
SHOW_SECTION_PAGES = True
# Are institutional codes consistent along the years. Default: False.
# Important: We need this to be True for the institutional treemap to work properly.
CONSISTENT_INSTITUTIONAL_CODES = True
# 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: True.
INCLUDE_FINANCIAL_CHAPTERS_IN_BREAKDOWNS = True
# Search in entity names. Default: True.
SEARCH_ENTITIES = False
# Number of items per terms page. Default: 10
TERMS_PAGE_LENGTH = 50
# Supported languages. Default: ('es', 'Castellano')
LANGUAGES = (
('es', 'Castellano'),
('en', 'English'),
)
# Setup Data Source Budget link
DATA_SOURCE_BUDGET = 'https://datos.madrid.es/portal/site/egob/menuitem.754985278d15ab64b2c3b244a8a409a0/?vgnextoid=20d612b9ace9f310VgnVCM100000171f5a0aRCRD&text=presupuestos&buscarEnTitulo=true&btn1=buscar'
# Setup Data Source Population link
DATA_SOURCE_POPULATION = 'https://www.ine.es/jaxiT3/Tabla.htm?t=2881&L=0'
# Setup Data Source Inflation link
DATA_SOURCE_INFLATION = 'https://www.ine.es/jaxiT3/Tabla.htm?t=22350&L=0'
# Setup Main Entity Web Url
MAIN_ENTITY_WEB_URL = 'https://www.madrid.es/'
# Setup Main Entity Legal Url (if empty we hide the link)
MAIN_ENTITY_LEGAL_URL = 'https://www.madrid.es/portales/munimadrid/avisoLegal.html'
# Setup Main Entity Legal Url (if empty we hide the link)
MAIN_ENTITY_PRIVACY_URL = 'https://www.madrid.es/portales/munimadrid/proteccionDatos.html'
# External URL for Cookies Policy (if empty we use out template page/cookies.html)
COOKIES_URL = 'https://www.madrid.es/portales/munimadrid/cookies.html'
# Allow overriding of default treemap color scheme
# COLOR_SCALE = [ '#1f77b4', '#ff7f0e', '#2ca02c', '#d62728', '#9467bd', '#8c564b', '#e377c2', '#e7969c', '#bcbd22', '#17becf' ]