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

« back to all changes in this revision

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

Created a new help system.

The new help system allows plugins to register their help paths, using
a dict of dicts and helpfile paths. This system allows multiple plugins
to use the same heading for their help files (ie. 'admin').

It also allows XHTMLViews to have a 'help' property, which makes the
context-sensitive help link point to their help path.

Show diffs side-by-side

added added

removed removed

Lines of Context:
99
99
            ctx['logged_in'] = False
100
100
        ctx['publicmode'] = req.publicmode
101
101
        ctx['apps_in_tabs'] = []
 
102
        if hasattr(self, 'help'):
 
103
            ctx['help_path'] = self.help
102
104
        for urlname in ivle.conf.apps.apps_in_tabs:
103
105
            new_app = {}
104
106
            app = ivle.conf.apps.app_url[urlname]