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

« back to all changes in this revision

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

  • Committer: Nick Chadwick
  • Date: 2009-03-09 00:45:58 UTC
  • mfrom: (1156 trunk)
  • mto: This revision was merged to the branch mainline in revision 1162.
  • Revision ID: chadnickbok@gmail.com-20090309004558-xvvj990b9h9y23bu
MergedĀ fromĀ trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
48
48
        for key in kwargs:
49
49
            setattr(self, key, kwargs[key])
50
50
 
 
51
    def filter(self, stream, ctx):
 
52
        return stream
 
53
 
51
54
    def render(self, req):
52
55
        req.content_type = 'text/html' # TODO: Detect application/xhtml+xml
53
56
 
61
64
                        inspect.getmodule(self).__file__), self.template) 
62
65
        loader = genshi.template.TemplateLoader(".", auto_reload=True)
63
66
        tmpl = loader.load(app_template)
64
 
        app = tmpl.generate(viewctx)
 
67
        app = self.filter(tmpl.generate(viewctx), viewctx)
65
68
 
66
69
        for plugin in self.plugin_scripts:
67
70
            for path in self.plugin_scripts[plugin]: