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

« back to all changes in this revision

Viewing changes to lib/common/zip.py

  • Committer: mattgiuca
  • Date: 2008-04-17 07:24:01 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:736
Added new script "marks.py" which computes the marks for all students and outputs it as a CSV file.
This borrows a lot of code from tutorial/__init__.py which should be factored out.

Show diffs side-by-side

added added

removed removed

Lines of Context:
51
51
            # Relative to req.path
52
52
            relpath = os.path.join(basepath, path)
53
53
 
54
 
        _, r = studpath.url_to_local(relpath)
 
54
        #_, r = studpath.url_to_local(relpath)
 
55
        r = relpath
55
56
        if r is None:
56
57
            raise OSError("ZIP: Invalid path")
57
58
        if not os.access(r, os.R_OK):