Changed phrase_settings.py to phrase-settings.json and added migration function for old php settings file.

This commit is contained in:
AntoJvlt
2021-03-22 00:07:55 +01:00
parent 1a93319093
commit 6d56cbb3e8
8 changed files with 246 additions and 39 deletions

View File

@@ -1,3 +0,0 @@
"""
Module for settings
"""

View File

@@ -0,0 +1,25 @@
{
"Comments": [
"Black list correspond to class/type combinations to exclude",
"If a class is in the white list then all types will",
"be ignored except the ones given in the list.",
"Also use this list to exclude an entire class from special phrases."
],
"blackList": {
"bounday": [
"administrative"
],
"place": [
"house",
"houses"
]
},
"whiteList": {
"highway": [
"bus_stop",
"rest_area",
"raceway'"
],
"building": []
}
}

View File

@@ -1,26 +0,0 @@
"""
These settings control the import of special phrases from the wiki.
"""
#class/type combinations to exclude
BLACK_LIST = {
'bounday': [
'administrative'
],
'place': [
'house',
'houses'
]
}
#If a class is in the white list then all types will
#be ignored except the ones given in the list.
#Also use this list to exclude an entire class from
#special phrases.
WHITE_LIST = {
'highway': [
'bus_stop',
'rest_area',
'raceway'
],
'building': []
}