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

« back to all changes in this revision

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

  • Committer: William Grant
  • Date: 2010-02-17 06:58:25 UTC
  • Revision ID: grantw@unimelb.edu.au-20100217065825-6s91gsbzl82621bu
Replace OfferingView's link to EnrolView with one to EnrolmentsView, and link from there to EnrolView.

Show diffs side-by-side

added added

removed removed

Lines of Context:
284
284
        ctx['OfferingEdit'] = OfferingEdit
285
285
        ctx['OfferingCloneWorksheets'] = OfferingCloneWorksheets
286
286
        ctx['GroupsView'] = GroupsView
 
287
        ctx['EnrolmentsView'] = EnrolmentsView
287
288
 
288
289
        # As we go, calculate the total score for this subject
289
290
        # (Assessable worksheets only, mandatory problems only)
548
549
    permission = 'edit'
549
550
 
550
551
    def populate(self, req, ctx):
 
552
        ctx['req'] = req
551
553
        ctx['offering'] = self.context
 
554
        ctx['EnrolView'] = EnrolView
 
555
 
552
556
 
553
557
class EnrolView(XHTMLView):
554
558
    """A form to enrol a user in an offering."""