Mercurial > wikked
diff manage.py @ 131:9d22cf4d2412
Massive change that should have been several smaller ones, but whatever:
- URLs are not slugified anymore, just quoted.
- `getPage` now raises an error if the page doesn't exist.
- Fixed the Mercurial SCM provider to be able to commit new files.
- Fixed various issues with meta-pages and new files.
- Better exception classes.
- Configurable default file extension, main page name, and templates folder.
- New CLI command to cache the wiki.
- A few other small fixes.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Sun, 01 Dec 2013 21:50:29 -0800 |
parents | ace48040b01d |
children | f32af0888382 |
line wrap: on
line diff
--- a/manage.py Wed Nov 27 23:32:45 2013 -0800 +++ b/manage.py Sun Dec 01 21:50:29 2013 -0800 @@ -1,3 +1,7 @@ + +# Configure logging. +import logging +logging.basicConfig(level=logging.DEBUG) # Configure a simpler log format. from wikked import settings @@ -49,6 +53,13 @@ @manager.command +def cache(): + """ Makes sure the extended cache is valid for the whole wiki. + """ + wiki._cachePages() + + +@manager.command def list(fs=False): """ Lists page names in the wiki. """