~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: 2009-12-08 05:29:01 UTC
  • Revision ID: grantw@unimelb.edu.au-20091208052901-7fed9nvzh1mo09xa
Remove the last +projectsets hardcoding.

Show diffs side-by-side

added added

removed removed

Lines of Context:
134
134
    permission = 'edit'
135
135
    tab = 'subjects'
136
136
 
137
 
    def project_url(self, projectset, project):
138
 
        return "/subjects/%s/%s/%s/+projects/%s" % (
139
 
                    self.context.subject.short_name,
140
 
                    self.context.semester.year,
141
 
                    self.context.semester.semester,
142
 
                    project.short_name
143
 
                    )
144
 
 
145
137
    def populate(self, req, ctx):
146
138
        self.plugin_styles[Plugin] = ["project.css"]
147
139
        self.plugin_scripts[Plugin] = ["project.js"]
 
140
        ctx['req'] = req
148
141
        ctx['offering'] = self.context
149
142
        ctx['projectsets'] = []
 
143
        ctx['OfferingRESTView'] = OfferingRESTView
150
144
 
151
145
        #Open the projectset Fragment, and render it for inclusion
152
146
        #into the ProjectSets page