def po2ical(self, posource): """helper that converts po source to .ics source without requiring files""" inputfile = wStringIO.StringIO(posource) inputpo = po.pofile(inputfile) convertor = po2ical.reical() outputical = convertor.convertstore(inputpo) return outputical
def merge2ical(self, propsource, posource): """helper that merges po translations to .ics source without requiring files""" inputfile = wStringIO.StringIO(posource) inputpo = po.pofile(inputfile) templatefile = wStringIO.StringIO(propsource) #templateprop = properties.propfile(templatefile) convertor = po2ical.reical(templatefile, inputpo) outputical = convertor.convertstore() print(outputical) return outputical
def merge2ical(self, propsource, posource): """helper that merges po translations to .ics source without requiring files""" inputfile = wStringIO.StringIO(posource) inputpo = po.pofile(inputfile) templatefile = wStringIO.StringIO(propsource) #templateprop = properties.propfile(templatefile) convertor = po2ical.reical(templatefile, inputpo) outputical = convertor.convertstore() print outputical return outputical