Mercurial > wikked
view wk.py @ 458:faa4c8467291
web: Improve upload workflow.
- Add 'upload' and 'wikiupload' permissions, and check for them.
- Fix the message about what the syntax is for using files in pages.
- Fix uploading files to endpoint pages.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Wed, 10 Jan 2018 22:52:42 -0800 |
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()