~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to ivle/webapp/base/views.py

ivle.webapp.base.views#XHTMLView: Set the content type to text/html.
ivle.webapp.browser#BrowserView: Don't set the content type.
ivle.webapp.groups#GroupsView: Clean up, and don't set the content type. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
124
124
          setattr(self, key, kwargs[key])
125
125
        
126
126
    def render(self, req):
 
127
        req.content_type = 'text/html' # TODO: Detect application/xhtml+xml
127
128
        ctx = genshi.template.Context()
128
129
        self.populate(req, ctx)
129
130
        self.populate_headings(req, ctx)