The request object should know about the theme being requested. It'd simplify a bunch of code if we had a single method for figuring it out on one place rather than a bunch of instances of:
form = self.request.get_form()
if 'theme' in form:
theme = form['theme'].value
else:
theme = config.get('default_theme', 'html')
The request object should know about the theme being requested. It'd simplify a bunch of code if we had a single method for figuring it out on one place rather than a bunch of instances of: