debian: use unicode strings for names in django settings

This commit is contained in:
Frédéric Péters 2017-08-29 16:26:52 +02:00
parent 53f1dbf5d3
commit cac809cddd
1 changed files with 34 additions and 34 deletions

68
debian/50gnm.py vendored
View File

@ -6,80 +6,80 @@ COMBO_DASHBOARD_ENABLED = True
COMBO_PUBLIC_TEMPLATES = {
"standard": {
"name": "Blanc",
"name": u"Blanc",
"template": "combo/page_template_blank.html",
"placeholders": {
"content": {
"name": "Contenu"
"name": u"Contenu"
}
}
},
"dashboard": {
"name": "Tableau de bord",
"name": u"Tableau de bord",
"template": "combo/page_template_dashboard.html",
"placeholders": {
"content": {
"name": "Contenu"
"name": u"Contenu"
},
"sidebar": {
"name": "Barre latérale"
"name": u"Barre latérale"
}
}
},
"iconbar": {
"name": "Barre d'icônes",
"name": u"Barre d'icônes",
"template": "combo/page_template_iconbar.html",
"placeholders": {
"content": {
"name": "Contenu"
"name": u"Contenu"
},
"sidebar": {
"name": "Barre latérale"
"name": u"Barre latérale"
}
}
},
"iconbar-left-sidebar": {
"name": "Barre d'icônes + barre à gauche",
"name": u"Barre d'icônes + barre à gauche",
"template": "combo/page_template_iconbar_left_sidebar.html",
"placeholders": {
"content": {
"name": "Contenu"
"name": u"Contenu"
},
"sidebar": {
"name": "Barre latérale"
"name": u"Barre latérale"
}
}
},
"mapsearch": {
"name": "Carte avec recherche",
"name": u"Carte avec recherche",
"template": "combo/page_template_mapsearch.html",
"placeholders": {
"content": {
"name": "Contenu"
"name": u"Contenu"
}
}
},
"search": {
"name": "Recherche",
"name": u"Recherche",
"template": "combo/page_template_search.html",
"placeholders": {
"content": {
"name": "Contenu"
"name": u"Contenu"
},
"sidebar": {
"name": "Barre latérale"
"name": u"Barre latérale"
},
"search": {
"name": "Zone de recherche"
"name": u"Zone de recherche"
}
}
},
"place": {
"name": "Lieu",
"name": u"Lieu",
"template": "combo/page_template_place.html",
"placeholders": {
"content": {
"name": "Contenu"
"name": u"Contenu"
}
}
},
@ -88,7 +88,7 @@ COMBO_PUBLIC_TEMPLATES = {
JSON_CELL_TYPES = {
"velov": {
"url": "https://download.data.grandlyon.com/ws/rdata/jcd_jcdecaux.jcdvelov/all.json?field=gid&value=[gid]",
"name": "Velov",
"name": u"Velov",
"cache_duration": 60,
"force_async": False,
"form": [
@ -101,7 +101,7 @@ JSON_CELL_TYPES = {
},
"taxi": {
"url": "https://download.data.grandlyon.com/wfs/grandlyon?SERVICE=WFS&VERSION=2.0.0&outputformat=GEOJSON&request=GetFeature&typename=pvo_patrimoine_voirie.pvostationtaxi&filter=<Filter><PropertyIsEqualTo><PropertyName>gid</PropertyName><Literal>[gid]</Literal></PropertyIsEqualTo></Filter>",
"name": "Station de taxi",
"name": u"Station de taxi",
"cache_duration": 86400,
"force_async": False,
"form": [
@ -116,7 +116,7 @@ JSON_CELL_TYPES = {
"url": "https://download.data.grandlyon.com/wfs/grandlyon?SERVICE=WFS&VERSION=2.0.0&outputformat=GEOJSON&maxfeatures=30&request=GetFeature&typename=ter_territoire.maison_du_rhone&SRSNAME=urn:ogc:def:crs:EPSG::4326&filter=<Filter><PropertyIsEqualTo><PropertyName>identifiant</PropertyName><Literal>[identifiant]</Literal></PropertyIsEqualTo></Filter>",
"cache_duration": 86400,
"force_async": False,
"name": "Maison de la Métropole de Lyon",
"name": u"Maison de la Métropole de Lyon",
"form": [
{
"varname": "identifiant",
@ -129,7 +129,7 @@ JSON_CELL_TYPES = {
"url": "https://download.data.grandlyon.com/wfs/grandlyon?SERVICE=WFS&VERSION=2.0.0&outputformat=GEOJSON&maxfeatures=30&request=GetFeature&typename=adr_voie_lieu.adrequippiscinepct&SRSNAME=urn:ogc:def:crs:EPSG::4326&filter=<Filter><PropertyIsEqualTo><PropertyName>identifiant</PropertyName><Literal>[identifiant]</Literal></PropertyIsEqualTo></Filter>",
"cache_duration": 86400,
"force_async": False,
"name": "Piscine de la Métropole de Lyon",
"name": u"Piscine de la Métropole de Lyon",
"form": [
{
"varname": "identifiant",
@ -142,7 +142,7 @@ JSON_CELL_TYPES = {
"url": "[passerelle_url]csvdatasource/mairies/data?identifiant=[identifiant]",
"cache_duration": 86400,
"force_async": False,
"name": "Mairie",
"name": u"Mairie",
"form": [
{
"varname": "identifiant",
@ -155,7 +155,7 @@ JSON_CELL_TYPES = {
"url": "https://download.data.grandlyon.com/wfs/grandlyon?SERVICE=WFS&VERSION=2.0.0&outputformat=GEOJSON&request=GetFeature&typename=gip_proprete.gipdecheterie&filter=<Filter><PropertyIsEqualTo><PropertyName>identifiant</PropertyName><Literal>[identifiant]</Literal></PropertyIsEqualTo></Filter>",
"cache_duration": 86400,
"force_async": False,
"name": "Déchèterie",
"name": u"Déchèterie",
"form": [
{
"varname": "identifiant",
@ -168,7 +168,7 @@ JSON_CELL_TYPES = {
"url": "https://download.data.grandlyon.com/wfs/grandlyon?SERVICE=WFS&VERSION=2.0.0&outputformat=GEOJSON&request=GetFeature&typename=gip_proprete.gipdonnerie&SRSNAME=urn:ogc:def:crs:EPSG::4326filter=<Filter><PropertyIsEqualTo><PropertyName>identifiant</PropertyName><Literal>[identifiant]</Literal></PropertyIsEqualTo></Filter>",
"cache_duration": 86400,
"force_async": False,
"name": "Donnerie",
"name": u"Donnerie",
"form": [
{
"varname": "identifiant",
@ -181,7 +181,7 @@ JSON_CELL_TYPES = {
"url": "https://download.data.grandlyon.com/wfs/rdata?SERVICE=WFS&VERSION=2.0.0&outputformat=GEOJSON&request=GetFeature&typename=sit_sitra.sittourisme&filter=<Filter><PropertyIsEqualTo><PropertyName>gid</PropertyName><Literal>[gid]</Literal></PropertyIsEqualTo></Filter>",
"cache_duration": 86400,
"force_async": False,
"name": "Bibliothèque",
"name": u"Bibliothèque",
"form": [
{
"varname": "gid",
@ -194,7 +194,7 @@ JSON_CELL_TYPES = {
"url": "https://download.data.grandlyon.com/wfs/grandlyon?SERVICE=WFS&VERSION=2.0.0&outputformat=GEOJSON&request=GetFeature&typename=pvo_patrimoine_voirie.pvoparking&filter=<Filter><PropertyIsEqualTo><PropertyName>gid</PropertyName><Literal>[gid]</Literal></PropertyIsEqualTo></Filter>",
"cache_duration": 86400,
"force_async": False,
"name": "Aire de covoiturage",
"name": u"Aire de covoiturage",
"form": [
{
"varname": "gid",
@ -207,17 +207,17 @@ JSON_CELL_TYPES = {
"url": "[passerelle_url]airquality/atmo/details/fr/lyon/",
"cache_duration": 86400,
"force_async": False,
"name": "Qualité de l'air"
"name": u"Qualité de l'air"
},
"pollen": {
"url": "https://download.data.grandlyon.com/ws/rdata/rnsa_reseau_aerobio.rnsabulletin/all.json?field=type&value=Synthese",
"cache_duration": 86400,
"force_async": False,
"name": "Info Pollen"
"name": u"Info Pollen"
},
"places": {
"url": "[passerelle_url]jsondatastore/lieux-favoris/data/?name_id=[user_nameid]",
"name": "Lieux favoris",
"name": u"Lieux favoris",
"force_async": False,
"cache_duration": 600,
"actions": {
@ -233,7 +233,7 @@ JSON_CELL_TYPES = {
"url": "https://download.data.grandlyon.com/ws/grandlyon/gic_collecte.gicsiloverre/all.json?field=identifiant&value=[identifiant]",
"cache_duration": 86400,
"force_async": False,
"name": "Silo à verre",
"name": u"Silo à verre",
"form": [
{
"varname": "identifiant",
@ -247,7 +247,7 @@ JSON_CELL_TYPES = {
"ajax_refresh": 25,
"cache_duration": 10,
"force_async": False,
"name": "Arrêt TCL",
"name": u"Arrêt TCL",
"form": [
{
"varname": "id",
@ -260,7 +260,7 @@ JSON_CELL_TYPES = {
"url": "http://preprod.tsvc.optimod2.cityway.fr:80/api/journeyplanner/opt/PlanTrips/json?DepartureType=COORDINATES&DepartureLatitude=[lat1]&DepartureLongitude=[lng1]&ArrivalType=COORDINATES&ArrivalLatitude=[lat2]&ArrivalLongitude=[lng2]&Date=[date]&DateType=DEPARTURE&Algorithm=MINCHANGES&TripModes=[tripmode]&user_key=1fd5db9effbb01c36424ef76463cdda0",
"cache_duration": 60,
"force_async": False,
"name": "M'y rendre",
"name": u"M'y rendre",
"varnames": ["lat1", "lng1", "lat2", "lng2", "date"],
"form": [
{