diff --git a/Avis.py b/Avis.py index 8f7c17d..f1e7bcd 100644 --- a/Avis.py +++ b/Avis.py @@ -47,7 +47,7 @@ class AvisOdt: # Tell the browser that the resulting page contains PDF response.setHeader('Content-type', 'application/%s' % fileType) response.setHeader('Content-disposition', - 'inline;filename="%s.%s"' % (self.id, fileType)) + 'inline;filename="%s.%s"' % (self.id[:200], fileType)) # Returns the doc and removes the temp file f = open(tempFileName, 'rb') doc = f.read()