~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to loggerhead/controllers/diff_ui.py

  • Committer: John Arbash Meinel
  • Date: 2011-03-16 12:21:36 UTC
  • mfrom: (411.3.3 simple_mainline)
  • Revision ID: john@arbash-meinel.com-20110316122136-930ttoriqgbw2cy3
Include simple_mainline.

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
        z = time.time()
39
39
 
40
40
        args = []
41
 
        while 1:
 
41
        while True:
42
42
            arg = path_info_pop(environ)
43
43
            if arg is None:
44
44
                break
72
72
        filename = '%s_%s.diff' % (revno1, revno2)
73
73
        headers = [
74
74
            ('Content-Type', 'application/octet-stream'),
75
 
            ('Content-Length', len(content)),
76
 
            ('Content-Disposition', 'attachment; filename=%s' % filename),
 
75
            ('Content-Length', str(len(content))),
 
76
            ('Content-Disposition', 'attachment; filename=%s' % (filename,)),
77
77
            ]
78
78
        start_response('200 OK', headers)
79
79
        return [content]