def __init__(self): pass import config config = config.Configuration() self.c_symbol = config.cCurrency()[0] self.c_dec = config.cCurrency()[1] self.thous_sep = config.ThousandsSep() self.thous_sep = config.ThousandsSep()
def formatCant( cant): import config config = config.Configuration() c_symbol = config.cCurrency()[0] c_dec = config.cCurrency()[1] thous_sep = config.ThousandsSep() try: ins = '%s %.'+str(c_dec)+'f' cant = ins % (c_symbol, cant) except: cant = str(c_dec),cant return str(cant)