Пример #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
Пример #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
Пример #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
Пример #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