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

« back to all changes in this revision

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

  • Committer: Matt Giuca
  • Date: 2010-02-25 08:26:04 UTC
  • mfrom: (1710.1.25 new-project-ui)
  • Revision ID: matt.giuca@gmail.com-20100225082604-0fku57vycn5cgonf
Replaced AJAX UI for project creation with a standard one. Can now edit project sets, and edit/delete projects. Also many more links to such things, due to the fact that they have their own URLs now. Fixes Launchpad bug #493942.

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
    permission = 'admin_groups'
38
38
 
39
39
    def populate(self, req, ctx):
 
40
        from ivle.webapp.admin.subject import (ProjectSetEdit, ProjectNew,
 
41
                                               ProjectEdit, ProjectDelete)
40
42
        self.plugin_styles[Plugin] = ['groups.css']
41
43
        self.plugin_scripts[Plugin] = ['groups.js']
42
44
 
43
45
        ctx['req'] = req
44
46
        ctx['projectset'] = self.context
 
47
        ctx['ProjectSetEdit'] = ProjectSetEdit
 
48
        ctx['ProjectNew'] = ProjectNew
 
49
        ctx['ProjectEdit'] = ProjectEdit
 
50
        ctx['ProjectDelete'] = ProjectDelete
 
51
        ctx['permissions'] = self.context.get_permissions(req.user,req.config)
45
52
 
46
53
class Plugin(ViewPlugin, MediaPlugin):
47
54
    """