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

« back to all changes in this revision

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

Allow XHTML views to specify that they cannot have overlays.

We utilise this in +{tos,logout,login}.

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
    template = 'template.html'
41
41
    plugin_scripts = {}
42
42
    plugin_styles = {}
 
43
    allow_overlays = True
43
44
    overlay_blacklist = []
44
45
 
45
46
    def __init__(self, req, **kwargs):
137
138
        scripts_init.
138
139
        """
139
140
        overlays = []
 
141
        if not self.allow_overlays:
 
142
            return overlays
 
143
 
140
144
        for plugin in req.plugin_index[OverlayPlugin]:
141
145
            for overclass in plugin.overlays:
142
146
                if overclass in self.overlay_blacklist: