Beispiel #1
0
 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
Beispiel #2
0
 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
Beispiel #3
0
 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
Beispiel #4
0
 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