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

« back to all changes in this revision

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

  • Committer: William Grant
  • Date: 2009-03-26 06:09:54 UTC
  • mto: (1165.3.1 submissions)
  • mto: This revision was merged to the branch mainline in revision 1174.
  • Revision ID: grantw@unimelb.edu.au-20090326060954-8931c8n83xdovyiw
Split SubmitView.__init__ into new subclasses, {User,Group}SubmitView.

Show diffs side-by-side

added added

removed removed

Lines of Context:
55
55
        return user
56
56
 
57
57
class UserSettingsView(XHTMLView):
58
 
    template = 'templates/user-settings.html'
 
58
    template = 'user-settings.html'
59
59
    tab = 'settings'
60
60
    permission = 'edit'
61
61
 
66
66
 
67
67
    def populate(self, req, ctx):
68
68
        self.plugin_scripts[Plugin] = ['settings.js']
69
 
        self.scripts_init = ['revert_settings']
 
69
        req.scripts_init = ['revert_settings']
70
70
 
71
71
        ctx['login'] = self.context.login
72
72