view main.py @ 91:607694092e2e

Extend CheckView to behave more like the actual merge. Now the merged file is also written to a temporary file in order to make sure the merge object actually reads all the contents of the input file. As it turns out, some contents of the input file are only read on demand and simply appending the file to the merge does not trigger this. Part of mpuls/issue5709
author Bernhard Herzog <bh@intevation.de>
date Thu, 26 May 2016 21:21:18 +0200
parents dcf870775c26
children
line wrap: on
line source
# -*- coding: utf-8 -*-
if __name__ == "__main__":
    from odfcast import app

    server_name = app.config['SERVER_NAME']
    if server_name and ':' in server_name:
        host, port = server_name.rsplit(':', 1)
        port = int(port)
    else:
        port = 5000
        host = "127.0.0.1"

    app.run(host=host, port=port)
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)