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

« back to all changes in this revision

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

  • Committer: Matt Giuca
  • Date: 2010-03-22 06:05:32 UTC
  • Revision ID: matt.giuca@gmail.com-20100322060532-5365361xrx9mh32v
Changed database.py get_svn_url to take a req; include the req.user.login in the Subversion URL. This allows you to check out repositories without separately supplying the IVLE URL (as Subversion won't ask for a username by default). Also removed --username= from the lecturer project view, as it's redundant now. This fixes Launchpad bug #543936.

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, config, submission):
 
738
    def build_subversion_url(self, req, submission):
739
739
        princ = submission.assessed.principal
740
740
 
741
 
        return os.path.join(princ.get_svn_url(config),
 
741
        return os.path.join(princ.get_svn_url(req.config, req),
742
742
                            submission.path[1:] if
743
743
                                submission.path.startswith(os.sep) else
744
744
                                submission.path)