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

« back to all changes in this revision

Viewing changes to ivle/webapp/media.py

  • Committer: William Grant
  • Date: 2009-07-04 13:05:56 UTC
  • mto: (1294.4.2 ui-the-third)
  • mto: This revision was merged to the branch mainline in revision 1353.
  • Revision ID: grantw@unimelb.edu.au-20090704130556-rwpn6d8t6az3tugt
Implement optional view subpath support.

Show diffs side-by-side

added added

removed removed

Lines of Context:
96
96
class MediaFileView(BaseView):
97
97
    permission = None
98
98
 
99
 
    def __init__(self, req, context):
100
 
        self.context = context
101
 
 
102
99
    def render(self, req):
103
100
        # If it begins with ".." or separator, it's illegal. Die.
104
101
        if self.context.path.startswith("..") or \