示例#1
0
文件: shot.py 项目: Vostbur/blogshot
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()
示例#2
0
文件: shot.py 项目: Vostbur/blogshot
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()