Exemple #1
0
def doku2db(name, path):
    global basename, wiki
    basename = "/tmp/doku-" + name
    logging.basicConfig(level=logging.INFO, filename=basename + ".log", filemode="w")
    wiki = Doku(path)
    wiki.load()
    wiki.persist2db(basename + ".db", overwrite=True)
Exemple #2
0
import logging
from doku import Doku

__author__ = 'mich'

if __name__ == "__main__":

    wikiset = [
        [
        # 's2m-130911',
        # '/home/mich/services/sel2mers/mirror/sel2mers/wiki'
        # ],[
        # 's2m-130913',
        # '/home/mich/services/sel2mers/mirror/sel2mers/doku'
        # ],[
        's2m-sink',
        '/home/mich/services/sel2mers/wiki-maint'
        ]]

    logging.basicConfig(level=logging.DEBUG)

    for (name, path) in wikiset:
        print("#+TITLE", name, path)
        wiki = Doku(path)
        wiki.load()
        wiki.summary()
 def test_load(self):
     self.assertEqual(True, False)
     wiki = Doku(WIKIPATH)
     wiki.load()
     self.assertEqual(len(wiki.root.children), 10)