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

« back to all changes in this revision

Viewing changes to ivle/webapp/filesystem/svnlog/__init__.py

Require that plugins providing media subclass MediaPlugin.

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
import ivle.date
27
27
import ivle.interpret
28
28
from ivle.webapp.base.xhtml import XHTMLView
29
 
from ivle.webapp.base.plugins import ViewPlugin
 
29
from ivle.webapp.base.plugins import ViewPlugin, MediaPlugin
30
30
from ivle.webapp.errors import NotFound, BadRequest
31
31
 
32
32
class SubversionLogView(XHTMLView):
70
70
                                  ivle.util.split_path(req.path)[0],
71
71
                                  pathaction[0][1:])) + '?r=%d' % log['revno'])
72
72
 
73
 
class Plugin(ViewPlugin):
 
73
class Plugin(ViewPlugin, MediaPlugin):
74
74
    urls = [
75
75
        ('/svnlog', SubversionLogView, {'path': ''}),
76
76
        ('/svnlog/*path', SubversionLogView),