Exemplo n.º 1
0
def parse(f):
    if type(f) is StringType:
        return Document(_cODP.ODP_parseFile(f))
    else:
        doc = f.read()
        return Document(_cODP.ODP_parseString(doc))
Exemplo n.º 2
0
def parseString(doc):
    return Document(_cODP.ODP_parseString(doc))