Exemplo n.º 1
0
 def web2py2po(self, web2py_source):
     """helper that converts po source to web2py source without requiring files"""
     input_web2py = eval(web2py_source)
     new_pofile = po.pofile()
     convertor = web2py2po.web2py2po(new_pofile)
     output_po = convertor.convertstore(input_web2py)
     return output_po
Exemplo n.º 2
0
 def web2py2po(self, web2py_source):
     """helper that converts po source to web2py source without requiring files"""
     input_web2py = eval(web2py_source)
     new_pofile = po.pofile()
     convertor = web2py2po.web2py2po(new_pofile)
     output_po = convertor.convertstore(input_web2py)
     return output_po