This way it isn't set in stone at a module level, especially if this
gets imported before the whole application inits, or if run during
tests and possibly imported multiple times.
'pagination': pagination})
+
+def root_view(request):
+ """
+ Proxies to the real root view that's displayed
+ """
+ view = hook_handle("frontpage_view") or default_root_view
+ return view(request)
+
+
+
def simple_template_render(request):
"""
A view for absolutely simple template rendering.
return render_to_response(request,
'mediagoblin/terms_of_service.html', {})
-
-root_view = hook_handle("frontpage_view") or default_root_view