def getter(file1,file2,path_for_reference_xsd, xsd_path):
    
     type_dict,service_provider_dict=type_template_mapping.csv_mapping_for_dat_type(file1, file2) 
     lookup_dict=xsd_lookup.parent_and_type_extracter(xsd_path)
     best_path_dict=latest_file_selecter.selector(path_for_reference_xsd, xsd_path)
     field_list=xsd_lookup.xsd_ref_value_extracter(xsd_path)
     return field_list,type_dict,service_provider_dict,lookup_dict,best_path_dict
def getter(file1, file2, path_for_reference_xsd, xsd_path):

    type_dict, service_provider_dict = type_template_mapping.csv_mapping_for_dat_type(
        file1, file2)
    lookup_dict = xsd_lookup.parent_and_type_extracter(xsd_path)
    best_path_dict = latest_file_selecter.selector(path_for_reference_xsd,
                                                   xsd_path)
    field_list = xsd_lookup.xsd_ref_value_extracter(xsd_path)
    return field_list, type_dict, service_provider_dict, lookup_dict, best_path_dict
Example #3
0
def value_extracter(path_for_reference_xsd, xsd_path):

    directory_list = os.listdir("%s" % path_for_reference_xsd)
    values = xsd_lookup.parent_and_type_extracter(xsd_path)

    xyz = {}

    for i in values.keys():
        xyz[i] = list()
        #print i
        for y in directory_list:

            temp_value = re.search(r'%s_(\d)' % i, y)
            #print temp_value
            if temp_value:
                xyz[i].append(y)
    #print xyz
    return xyz
def value_extracter(path_for_reference_xsd,xsd_path):
    
    directory_list=os.listdir("%s"%path_for_reference_xsd)
    values=xsd_lookup.parent_and_type_extracter(xsd_path)
    
    xyz={}

    for i in values.keys():
        xyz[i]=list()
        #print i
        for y in directory_list:
           
           temp_value=re.search(r'%s_(\d)'%i,y)
           #print temp_value
           if temp_value:
               xyz[i].append(y)
    #print xyz 
    return xyz