Mercurial > wikked
view wk.py @ 303:6bd9d44fc535
Wiki updater cleanup and improvements.
* Less confusing API on `WikiParameters`.
* Less confusing way to do things when running the Flask app.
* When running locally, and the user edits a page, just resolve that page and
mark any other including/querying page invalidated. Resolve those lazily on
demand.
* Add DB ability to return the resolved state of pages.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Wed, 01 Oct 2014 08:19:03 -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()