node_hierarchy/node_hierarchy.py

75 lines
1.8 KiB
Python
Raw Normal View History

2015-12-22 22:59:50 +01:00
#!/usr/bin/python
# -*- coding: utf-8 -
#Imports:
import json
2015-12-23 14:16:18 +01:00
from domain_selector import DomainSelector
2015-12-22 22:59:50 +01:00
targets = {
2015-12-23 14:16:18 +01:00
# 'muenster' : [
# {'city' : u'Münster'},
# {'county' : u'Münster'},
# ],
2015-12-22 22:59:50 +01:00
'kreis_warendorf' : [
2015-12-23 14:16:18 +01:00
{'county' : u'Kreis Warendorf'},
2015-12-22 22:59:50 +01:00
],
'kreis_coesfeld' : [
2015-12-23 14:16:18 +01:00
{'county' : u'Kreis Coesfeld'},
2015-12-22 22:59:50 +01:00
],
'kreis_steinfurt_west' : [
{'town' : u'48565'},
{'village' : u'Wettringen'},
{'town' : u'Ochtrup'},
{'village' : u'Metelen'},
{'town' : u'Horstmar'},
{'village' : u'Laer'},
{'village' : u'Nordwalde'},
2015-12-23 14:16:18 +01:00
{'village' : u'Altenberge'},
2015-12-22 22:59:50 +01:00
],
'kreis_steinfurt_ost' : [
{'town' : u'Emsdetten'},
{'town' : u'Neuenkirchen'},
{'town' : u'Rheine'},
{'town' : u'Greven'},
{'village' : u'Ladbergen'},
{'town' : u'Lengerich'},
{'town' : u'Tecklenburg'},
{'village' : u'Lienen'},
2015-12-23 14:16:18 +01:00
],
'muenster_stadt' : [
{'city_district' : u'Münster-Mitte'},
{'city_district' : u'Münster-Nord'},
{'city_district' : u'Münster-Ost'},
{'suburb' : u'Berg Fidel'},
{'suburb' : u'Gremmendorf'},
{'suburb' : u'Mecklenbeck'},
{'suburb' : u'Gievenbeck'},
{'suburb' : u'Nienberge'},
{'suburb' : u'Roxel'},
{'suburb' : u'Sentruper Höhe'},
],
'muenster_sued' : [
{'suburb' : u'Amelsbüren'},
{'suburb' : u'Hiltrup'},
{'suburb' : u'Albachten'},
],
'kreis_borken' : [
{'town' : u'Ahaus'},
{'town' : u'Bocholt'},
{'town' : u'Borken'},
{'town' : u'Gescher'},
{'village' : u'Heek'},
{'town' : u'Heiden'},
{'town' : u'Isselburg'},
{'village' : u'Legden'},
{'town' : u'Raesfeld'},
{'town' : u'Reken'},
{'town' : u'Rhede'},
{'village' : u'Schöppingen'},
{'town' : u'Stadtlohn'},
{'village' : u'Südlohn'},
{'town' : u'Velen'},
{'town' : u'Vreden'},
2015-12-22 22:59:50 +01:00
]
}
2015-12-23 14:16:18 +01:00
ds = DomainSelector(nodesFile = 'nodes.json', graphFile = 'graph.json', printStatus = True, dataPath = '../domaenensplit_webserver_config/', targets = targets)