~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-07-03 01:39:51 UTC
  • Revision ID: grantw@unimelb.edu.au-20100703013951-mo3i08jw494dddve
Install 'python' in the jail, not 'python2.5' -- we want the default system Python, and 2.5 doesn't exist on Lucid.

Show diffs side-by-side

added added

removed removed

Lines of Context:
735
735
    permission = "view_project_submissions"
736
736
    tab = 'subjects'
737
737
 
 
738
    def build_subversion_url(self, req, submission):
 
739
        princ = submission.assessed.principal
 
740
 
 
741
        return os.path.join(princ.get_svn_url(req.config, req),
 
742
                            submission.path[1:] if
 
743
                                submission.path.startswith(os.sep) else
 
744
                                submission.path)
 
745
 
738
746
    def populate(self, req, ctx):
739
747
        self.plugin_styles[Plugin] = ["project.css"]
740
748
 
744
752
        ctx['EnrolView'] = EnrolView
745
753
        ctx['format_datetime'] = ivle.date.make_date_nice
746
754
        ctx['format_datetime_short'] = ivle.date.format_datetime_for_paragraph
 
755
        ctx['build_subversion_url'] = self.build_subversion_url
747
756
        ctx['project'] = self.context
748
757
        ctx['user'] = req.user
749
758
        ctx['ProjectEdit'] = ProjectEdit