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

« back to all changes in this revision

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

  • Committer: William Grant
  • Date: 2009-12-08 04:48:54 UTC
  • Revision ID: grantw@unimelb.edu.au-20091208044854-1nemu4568azzeh9r
Make the group admin UI a per-projectset view.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
Allows students and tutors to manage project groups.
22
22
'''
23
23
 
24
 
from ivle.database import Offering
 
24
from ivle.database import ProjectSet
25
25
 
26
26
from ivle.webapp.base.plugins import ViewPlugin, MediaPlugin
27
27
from ivle.webapp.base.xhtml import XHTMLView
39
39
        self.plugin_styles[Plugin] = ['groups.css']
40
40
        self.plugin_scripts[Plugin] = ['groups.js']
41
41
 
42
 
        ctx['offering'] = self.context
 
42
        ctx['projectset'] = self.context
43
43
 
44
44
class Plugin(ViewPlugin, MediaPlugin):
45
45
    """
46
46
    The Plugin class for the group admin plugin.
47
47
    """
48
 
    views = [(Offering, '+groups', GroupsView)]
 
48
    views = [(ProjectSet, '+groups', GroupsView)]
49
49
 
50
50
    media = 'media'
51
51
    help = {'Groups': 'help.html'}