Index: trunk/extensions/Collection/pdf-server/pdfserver.py |
— | — | @@ -47,6 +47,7 @@ |
48 | 48 | import simplejson |
49 | 49 | import StringIO |
50 | 50 | import subprocess |
| 51 | +import sys |
51 | 52 | import time |
52 | 53 | |
53 | 54 | def uid(max_length=10): |
— | — | @@ -131,7 +132,7 @@ |
132 | 133 | content = result.get('content', '') |
133 | 134 | print 'Content-Length: %d' % len(content) |
134 | 135 | print # end of headers |
135 | | - print content, |
| 136 | + sys.stdout.write(content) |
136 | 137 | |
137 | 138 | def do_render(self): |
138 | 139 | metabook_data = self.form.getvalue('metabook') |