~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 06:32:57 UTC
  • mto: This revision was merged to the branch mainline in revision 1731.
  • Revision ID: matt.giuca@gmail.com-20100225063257-9cr77e15z049u3v4
ProjectSet page: Added 'Add a new project' button here.

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