def xml_safe(stri, charset):
    if len(charset) == 0:
        charset = utility.from_excelsheet(filename, 0, 1, mappings)     
    retstr = stri
    for x in range(0, len(charset)): 
        curchar = charset[x]
        curkey = curchar['Character']
        curvalue = curchar['Substitute']
        retstr = retstr.replace(curkey, curvalue)
    return retstr
Beispiel #2
0
def xml_safe(stri, charset):
    if len(charset) == 0:
        charset = utility.from_excelsheet(filename, 0, 1, mappings)
    retstr = stri
    for x in range(0, len(charset)):
        curchar = charset[x]
        curkey = curchar['Character']
        curvalue = curchar['Substitute']
        retstr = retstr.replace(curkey, curvalue)
    return retstr
def build():
	charset = utility.from_excelsheet(filename, 0, 1, mappings)
	return charset
Beispiel #4
0
def build(yr):
    master_data = utility.from_excelsheet(utility.get_source_filename(yr), 4,
                                          1, mappings)
    results = include_extra(master_data, yr)
    return results
Beispiel #5
0
def build(year):
	result = utility.from_excelsheet(utility.get_source_filename(year), 1, 1, mappings)
	return result
Beispiel #6
0
def build(year):
	regs = utility.from_excelsheet(utility.get_source_filename(year), 0, 1, mappings)
	results = include_ISO(regs)
	return results
Beispiel #7
0
def build(year):
    regs = utility.from_excelsheet(utility.get_source_filename(year), 0, 1,
                                   mappings)
    results = include_ISO(regs)
    return results
Beispiel #8
0
def get_synonyms():
    result = utility.from_excelsheet(source_filename, 1, 1, synonym_mappings)
    return result
Beispiel #9
0
def get_ISO_countries():
    result = utility.from_excelsheet(source_filename, 0, 1, iso_country_mappings)
    return result
Beispiel #10
0
def build():
    charset = utility.from_excelsheet(filename, 0, 1, mappings)
    return charset
Beispiel #11
0
def build(yr):
	master_data = utility.from_excelsheet(utility.get_source_filename(yr), 3, 3, mappings)
	results = include_extra(master_data, yr)
	return results
Beispiel #12
0
def  build(year):
	goods = utility.from_excelsheet(utility.get_source_filename(year), 2, 1, mappings)
	results = include_extra(goods, year)
	return results
Beispiel #13
0
def build(year):
    goods = utility.from_excelsheet(utility.get_source_filename(year), 2, 1,
                                    mappings)
    results = include_extra(goods, year)
    return results