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

« back to all changes in this revision

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

  • 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:
36
36
 
37
37
@forward_route(ApplicationRoot, '+semesters', argc=2)
38
38
def root_to_semester(root, year, semester):
39
 
    return root.store.find(Semester, year=year, semester=semester).one()
 
39
    return root.store.find(Semester, year=year, url_name=semester).one()
40
40
 
41
41
@forward_route(Subject, argc=2)
42
42
def subject_to_offering(subject, year, semester):
76
76
 
77
77
@reverse_route(Semester)
78
78
def semester_url(semester):
79
 
    return (ROOT, ('+semesters', semester.year, semester.semester))
 
79
    return (ROOT, ('+semesters', semester.year, semester.url_name))
80
80
 
81
81
@reverse_route(Offering)
82
82
def offering_url(offering):
83
83
    return (offering.subject, (offering.semester.year,
84
 
                               offering.semester.semester))
 
84
                               offering.semester.url_name))
85
85
 
86
86
@reverse_route(ProjectSet)
87
87
def projectset_url(project_set):