~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 07:01:51 UTC
  • mto: This revision was merged to the branch mainline in revision 1731.
  • Revision ID: matt.giuca@gmail.com-20100225070151-a95iwyrpmydzjdkr
Added links to ProjectEdit view, from offering projects page, manage projects page, and individual project pages.

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)
 
40
        from ivle.webapp.admin.subject import (ProjectSetEdit, ProjectNew,
 
41
                                               ProjectEdit)
41
42
        self.plugin_styles[Plugin] = ['groups.css']
42
43
        self.plugin_scripts[Plugin] = ['groups.js']
43
44
 
45
46
        ctx['projectset'] = self.context
46
47
        ctx['ProjectSetEdit'] = ProjectSetEdit
47
48
        ctx['ProjectNew'] = ProjectNew
 
49
        ctx['ProjectEdit'] = ProjectEdit
48
50
        ctx['permissions'] = self.context.get_permissions(req.user,req.config)
49
51
 
50
52
class Plugin(ViewPlugin, MediaPlugin):