The beginning of context hooks.
authorChristopher Allan Webber <cwebber@dustycloud.org>
Wed, 8 May 2013 19:35:31 +0000 (14:35 -0500)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Wed, 8 May 2013 19:35:31 +0000 (14:35 -0500)
commit3810309443899e92d640fb0c893018ef82b786ee
treef877df48ffde7049320122292f68fe3608481e26
parentf65bf8983611b18ec3a6a042404c50b8558529df
The beginning of context hooks.

Not the working solution, but getting there conceptually.  Basically
we'll have a key with the view and the template as a tuple which is
the context hook that anyone can attach to.

However, some changes have still to be made:
 - The unit test doesn't work yet and contains a set_trace ;)
 - We'll probably switch the "view" component from being the callable
   to the "urlgen"'able name per Elrond's suggestion
 - Found a bug in unit tests related to running custom apps for
   different configs... hm.  I need to fix this!

Nonetheless, making progress.

This commit sponsored by... wait a minute... Christopher Webber?!
mediagoblin/app.py
mediagoblin/tests/test_pluginapi.py
mediagoblin/tools/template.py