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

« back to all changes in this revision

Viewing changes to ivle/webapp/groups/__init__.py

Dispatch now generates an index for each plugin type, allowing plugins to
be written which are aware of other plugins, and other plugin types.

All view plugins now subclass from ivle.webapp.base.plugins.ViewPlugin,
as opposed to subclassing BasePlugin directly. This will allow us to
easily re-write console as an OverlayPlugin, and allow future new
plugins types to be created.

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
from ivle import caps
27
27
from ivle.database import Subject
28
28
 
29
 
from ivle.webapp.base.plugins import BasePlugin
 
29
from ivle.webapp.base.plugins import ViewPlugin
30
30
from ivle.webapp.base.xhtml import XHTMLView
31
31
 
32
32
class GroupsView(XHTMLView):
47
47
              req.user.hasCap(caps.CAP_MANAGEGROUPS) else []
48
48
 
49
49
 
50
 
class Plugin(BasePlugin):
 
50
class Plugin(ViewPlugin):
51
51
    """
52
52
    The Plugin class for the group admin plugin.
53
53
    """