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

« back to all changes in this revision

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

Require that plugins providing media subclass MediaPlugin.

Show diffs side-by-side

added added

removed removed

Lines of Context:
51
51
    deleted on logout.
52
52
    """
53
53
    pass
 
54
 
 
55
class MediaPlugin(BasePlugin):
 
56
    """Marker class for plugins which provide media files.
 
57
 
 
58
    Media plugins provide a 'media' attribute, which is a string pointing to a
 
59
    subdirectory that contains media files to be served statically.
 
60
    """
 
61
    pass