Mercurial > wikked
view wk.py @ 254:fa2c3671bcd9
Fixes for running in `mod_wsgi`.
* No more `wsgiutil` for now, since it's easy enough to write the script.
* Added a "context" to wiki parameters to communicate if we're running in normal
mode, initialization mode (creating a new wiki), or background task mode.
* Mercurial source-control uses this context to decide how to setup (or not) a
command server.
* Mercurial source-control is now sharing its command server per process, and
tries to correctly shut it down on exit.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Wed, 02 Apr 2014 08:13:12 -0700 |
parents | 2dd7535045eb |
children |
line wrap: on
line source
#!/usr/local/bin/python import sys import logging import colorama from wikked.witch import ColoredFormatter, main # Configure logging. colorama.init() root_logger = logging.getLogger() handler = logging.StreamHandler(stream=sys.stdout) handler.setFormatter(ColoredFormatter('%(message)s')) root_logger.addHandler(handler) if __name__ == "__main__": main()