def initialize():
f = cfg.CONF.drilldown.mappingfile
with open(f, 'r') as stream:
a = yaml.load_all(stream)
for dictio in a:
for key, value in dictio.iteritems():
for mylist in value:
obj = MappingFile(mylist['sourcelabel'], mylist['targetlabel'], mylist['returnfields'],
mylist['nextfields'], mylist['datasource'])
odict[mylist['sourcelabel']] = obj
评论列表
文章目录