Exemple #1
0
def get_page_from_rst(srcText):
    """
    from a rest file generate a bookmaker pageobj
    """
    lgr.debug("Converting a text string %s" % srcText[:10])
    pageobj = lib.rst_to_page(srcText)
    return pageobj
def main(tgtpath):
    """
    """
    srcpath = tgtpath
    pageob = lib.rst_to_page(srcpath)
    return pageob