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

« back to all changes in this revision

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

Move the plugin loading/indexing logic into ivle.config.Config.
Also eliminate plugins_HACK, looking in a configuration file instead.

req.config is now set to a Config instance, and things that need to look
at plugins ask it.

Show diffs side-by-side

added added

removed removed

Lines of Context:
111
111
            ctx['help_path'] = self.help
112
112
 
113
113
        ctx['apps_in_tabs'] = []
114
 
        for plugin in req.plugin_index[ViewPlugin]:
 
114
        for plugin in req.config.plugin_index[ViewPlugin]:
115
115
            if not hasattr(plugin, 'tabs'):
116
116
                continue
117
117
 
148
148
        if not self.allow_overlays:
149
149
            return overlays
150
150
 
151
 
        for plugin in req.plugin_index[OverlayPlugin]:
 
151
        for plugin in req.config.plugin_index[OverlayPlugin]:
152
152
            for overclass in plugin.overlays:
153
153
                if overclass in self.overlay_blacklist:
154
154
                    continue