Beispiel #1
0
def draft_mode(): # Режим генерации из черновиков
    dmp = Dump()
    flist = files(config['draft'])
    for the_file in flist:
        if work(the_file, dmp):
            move(the_file, config['source'])
    archive_page(dmp)
    rss(dmp)
    dmp.sync()
Beispiel #2
0
def regen_mode(): # режим полной перегенирации файлов
    clear(config['output'])
    save('dump.db', '{}')
    dmp = Dump()
    flist = files(config['source'])
    for the_file in flist:
        work(the_file, dmp)
    archive_page(dmp)
    rss(dmp)
    dmp.sync()
    static_page()