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

« back to all changes in this revision

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

Move ivle.webapp.groups' media to the new framework.

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
    appname = 'groups' # XXX
38
38
 
39
39
    def populate(self, req, ctx):
40
 
        # Set request attributes
41
 
        req.styles = ["media/groups/groups.css"]
42
 
        req.scripts = [
43
 
            "media/groups/groups.js",
44
 
            "media/common/util.js",
45
 
            "media/common/json2.js",
46
 
        ]
 
40
        self.plugin_styles[Plugin] = ['groups.css']
 
41
        self.plugin_scripts[Plugin] = ['groups.js']
47
42
 
48
43
        # Show a group panel per enrolment
49
44
        ctx['get_user_groups'] = req.user.get_groups
59
54
    urls = [
60
55
        ('groups/', GroupsView),
61
56
    ]
 
57
 
 
58
    media = 'media'