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

« back to all changes in this revision

Viewing changes to www/apps/download/__init__.py

  • Committer: mattgiuca
  • Date: 2008-02-28 08:03:25 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:610
server, download: More fixes to error messages.

Show diffs side-by-side

added added

removed removed

Lines of Context:
64
64
        # Otherwise, just serve directly (unless it's a directory)
65
65
        (_, path) = studpath.url_to_local(req.path)
66
66
        if path is None:
67
 
            # TODO: Nicer 404 message?
68
67
            req.throw_error(req.HTTP_NOT_FOUND,
69
68
                "The path specified is invalid.")
70
69
        elif not os.access(path, os.R_OK):