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

« back to all changes in this revision

Viewing changes to bin/ivle-fetchsubmissions

  • Committer: David Coles
  • Date: 2010-07-28 10:52:48 UTC
  • mfrom: (1791.2.10 mediahandlers)
  • Revision ID: coles.david@gmail.com-20100728105248-zvbn9g72v1nsskvd
A series of HTML5 based media handlers using the <audio> and <video> tags.  
This replaces the previous page that just showed a download link (which is 
already available on the menu).

Also solves issue where media files were downloaded by the client twice (once 
in an AJAX request intended only for text).

Known issues:
    * Bug #588285: External BHO will not be able to play media due to not
      having IVLE cookie.
    * Bug #610745: Does not correctly preview revisions
    * Bug #610780: Ogg media does not work in Chromium

Show diffs side-by-side

added added

removed removed

Lines of Context:
118
118
        # The name of the repository directory within 'groups' is
119
119
        # SUBJECT_YEAR_SEMESTER_GROUP
120
120
        namespace = "_".join([offering.subject.short_name,
121
 
            offering.semester.year, offering.semester.semester, groupname])
 
121
            offering.semester.year, offering.semester.url_name, groupname])
122
122
        repo_path = os.path.join(config['paths']['svn']['repo_path'],
123
123
                                'groups', namespace)
124
124
    else:
312
312
 
313
313
    # Target directory is DEST/subject/year/semester/project
314
314
    target_dir = os.path.join(options.dest, subject_name,
315
 
        offering.semester.year, offering.semester.semester, project_name)
 
315
        offering.semester.year, offering.semester.url_name, project_name)
316
316
    if not os.path.exists(target_dir):
317
317
        os.makedirs(target_dir)
318
318