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

« back to all changes in this revision

Viewing changes to ivle/webapp/admin/user.py

Require that plugins providing media subclass MediaPlugin.

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
 
20
20
from ivle.webapp.base.rest import JSONRESTView
21
21
from ivle.webapp.base.xhtml import XHTMLView
22
 
from ivle.webapp.base.plugins import ViewPlugin
 
22
from ivle.webapp.base.plugins import ViewPlugin, MediaPlugin
23
23
from ivle.webapp.errors import NotFound, Unauthorized
24
24
import ivle.database
25
25
import ivle.util
86
86
 
87
87
        ctx['login'] = self.context.login
88
88
 
89
 
class Plugin(ViewPlugin):
 
89
class Plugin(ViewPlugin, MediaPlugin):
90
90
    """
91
91
    The Plugin class for the user plugin.
92
92
    """