예제 #1
0
파일: load_noeud.py 프로젝트: Chedi/tajhiz
def run(verbose=True):
    lm = LayerMapping(Noeud, tunisia_nodes, node_mapping, transform=True, encoding='utf8')
    lm.save(strict=True, verbose=verbose)
    for i in Noeud.objects.all():
		i.type   = slugify(i.type )
		i.label  = slugify(i.label)
		i.save()
예제 #2
0
파일: load_voie.py 프로젝트: Chedi/tajhiz
def run(verbose=True):
    lm = LayerMapping(Voie, tunisia_voie, voie_mapping, transform=True, encoding='utf8')
    lm.save(strict=True, verbose=verbose)
    for i in Voie.objects.all():
		i.label     = slugify(i.label    )
		i.nom_usage = slugify(i.nom_usage)
		i.save()
예제 #3
0
def run(verbose=True):
	lm = LayerMapping(DirectionRegionale, tunisia_states, states_mapping, transform=True, encoding='utf8')
	lm.save(strict=True, verbose=verbose)
	for i in DirectionRegionale.objects.all():
		i.label = slugify(i.label)
		i.save()