Exemplo n.º 1
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
Exemplo n.º 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
Exemplo n.º 3
0
def build():
	charset = utility.from_excelsheet(filename, 0, 1, mappings)
	return charset
Exemplo n.º 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
Exemplo n.º 5
0
def build(year):
	result = utility.from_excelsheet(utility.get_source_filename(year), 1, 1, mappings)
	return result
Exemplo n.º 6
0
def build(year):
	regs = utility.from_excelsheet(utility.get_source_filename(year), 0, 1, mappings)
	results = include_ISO(regs)
	return results
Exemplo n.º 7
0
def build(year):
    regs = utility.from_excelsheet(utility.get_source_filename(year), 0, 1,
                                   mappings)
    results = include_ISO(regs)
    return results
Exemplo n.º 8
0
def get_synonyms():
    result = utility.from_excelsheet(source_filename, 1, 1, synonym_mappings)
    return result
Exemplo n.º 9
0
def get_ISO_countries():
    result = utility.from_excelsheet(source_filename, 0, 1, iso_country_mappings)
    return result
Exemplo n.º 10
0
def build():
    charset = utility.from_excelsheet(filename, 0, 1, mappings)
    return charset
Exemplo n.º 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
Exemplo n.º 12
0
def  build(year):
	goods = utility.from_excelsheet(utility.get_source_filename(year), 2, 1, mappings)
	results = include_extra(goods, year)
	return results
Exemplo n.º 13
0
def build(year):
    goods = utility.from_excelsheet(utility.get_source_filename(year), 2, 1,
                                    mappings)
    results = include_extra(goods, year)
    return results