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

« back to all changes in this revision

Viewing changes to ivle/webapp/security/views.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:
112
112
                        req.store.commit()
113
113
 
114
114
                        # Create cookies for plugins that might request them.
115
 
                        for plugin in req.plugin_index[CookiePlugin]:
 
115
                        for plugin in req.config.plugin_index[CookiePlugin]:
116
116
                            for cookie in plugin.cookies:
117
117
                                # The function can be None if they just need to be
118
118
                                # deleted at logout.