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

« back to all changes in this revision

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

ivle.chat now opens /dev/null as std{in,out,err} when daemonising.

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
    template = 'template.html'
42
42
    plugin_scripts = {}
43
43
    plugin_styles = {}
 
44
    allow_overlays = True
44
45
    overlay_blacklist = []
45
46
 
46
47
    def __init__(self, req, **kwargs):
58
59
        # view.
59
60
        app_template = os.path.join(os.path.dirname(
60
61
                        inspect.getmodule(self).__file__), self.template) 
61
 
        req.write_html_head_foot = False
62
62
        loader = genshi.template.TemplateLoader(".", auto_reload=True)
63
63
        tmpl = loader.load(app_template)
64
64
        app = tmpl.generate(viewctx)
110
110
            ctx['help_path'] = self.help
111
111
 
112
112
        ctx['apps_in_tabs'] = []
113
 
        for plugin in req.plugin_index[ViewPlugin]:
 
113
        for plugin in req.config.plugin_index[ViewPlugin]:
114
114
            if not hasattr(plugin, 'tabs'):
115
115
                continue
116
116
 
144
144
        scripts_init.
145
145
        """
146
146
        overlays = []
147
 
        for plugin in req.plugin_index[OverlayPlugin]:
 
147
        if not self.allow_overlays:
 
148
            return overlays
 
149
 
 
150
        for plugin in req.config.plugin_index[OverlayPlugin]:
148
151
            for overclass in plugin.overlays:
149
152
                if overclass in self.overlay_blacklist:
150
153
                    continue