annotate backend.py @ 224:d45450a0256a

Various changes/improvements: * Nicer init/deinit loop in Wiki class. * Renamed `wk cache` to `wk resolve`, made resolving pages a 1st class API on the Wiki class. * The `wk update` command now takes a path instead of an URL. * Re-implemented auto-updating pages when their file has changed. This added a new `isCacheValid` function on the DB layer. * Got rid of exceptions with some meta-properties being arrays and some not. Now they're all arrays, but there's some helper functions to work with that. * Remove trailing empty lines from multi-line meta-properties. * Fixed some issues parsing multi-line meta-properties and queries. * Fixed some issues resolving queries, especially with custom item templates. * Better handling of page/wiki permissions.
author Ludovic Chabant <ludovic@chabant.com>
date Mon, 10 Mar 2014 16:47:21 -0700
parents a4a64d6b66cb
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
164
a4a64d6b66cb Fixed various bugs:
Ludovic Chabant <ludovic@chabant.com>
parents: 140
diff changeset
1 from wikked.tasks import app
138
df04e6a875ba Added Celery-powered background updates to wiki pages.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
2
df04e6a875ba Added Celery-powered background updates to wiki pages.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
3 if __name__ == '__main__':
df04e6a875ba Added Celery-powered background updates to wiki pages.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
4 app.start()
df04e6a875ba Added Celery-powered background updates to wiki pages.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
5