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

« back to all changes in this revision

Viewing changes to ivle/webapp/tutorial/marks.py

  • Committer: David Coles
  • Date: 2010-07-17 11:32:50 UTC
  • Revision ID: coles.david@gmail.com-20100717113250-vi18n50bcjmfmzrt
Show warning for CGI header field-names which contain restricted characters.

Forbidden characters are the separators defined by RFC3875. This is mainly to 
fix an issue where printing a dictionary (with no CGI headers) could be 
assumed to be a CGI header with no warnings.

Show diffs side-by-side

added added

removed removed

Lines of Context:
107
107
        req.headers_out.add('Content-Disposition',
108
108
            "attachment; filename=marks-%s-%ss%s.csv" %
109
109
            (offering.subject.short_name, offering.semester.year,
110
 
             offering.semester.url_name))
 
110
             offering.semester.semester))
111
111
 
112
112
        # "worksheets" is a list of (assessable, published) worksheet names
113
113
        worksheets = offering.worksheets.find(assessable=True, published=True)