willkg / douglas

DEAD PROJECT: File based static rendering blog system
Other
2 stars 3 forks source link

add 'get_theme' to request #28

Closed willkg closed 10 years ago

willkg commented 10 years ago

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')