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

« back to all changes in this revision

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

Port ivle.webapp.admin.user's media to the new framework.

Show diffs side-by-side

added added

removed removed

Lines of Context:
75
75
        if not self.context:
76
76
            raise NotFound()
77
77
 
78
 
        req.scripts = [
79
 
            "/media/settings/settings.js",
80
 
            "/media/common/json2.js",
81
 
            "/media/common/util.js",
82
 
        ]
83
 
        req.scripts_init = [
84
 
            "revert_settings"
85
 
        ]
 
78
        self.plugin_scripts[Plugin] = ['settings.js']
 
79
        req.scripts_init = ['revert_settings']
 
80
 
86
81
        ctx['login'] = self.context.login
87
82
 
88
83
class Plugin(BasePlugin):
97
92
        ('~:login/+settings', UserSettingsView),
98
93
        ('api/~:login', UserRESTView),
99
94
    ]
 
95
 
 
96
    media = 'user-media'