Пример #1
0
Файл: cron.py Проект: tgage/asm3
def publish_html(dbo):
    try :
        if configuration.publishers_enabled(dbo).find("html") != -1:
            publish.start_publisher(dbo, "html", user="******", async=False)
    except:
        em = str(sys.exc_info()[0])
        al.error("FAIL: uncaught error running html publisher: %s" % em, "cron.publish_html", dbo, sys.exc_info())
Пример #2
0
Файл: cron.py Проект: tgage/asm3
def publish_3pty(dbo):
    try:
        publishers = configuration.publishers_enabled(dbo)
        for p in publishers.split(" "):
            if p != "html": # We do html/ftp publishing separate from others
                publish.start_publisher(dbo, p, user="******", async=False)
    except:
        em = str(sys.exc_info()[0])
        al.error("FAIL: uncaught error running third party publishers: %s" % em, "cron.publish_3pty", dbo, sys.exc_info())