how to zip a StringIO object?

2009-10-28 Thread Nagy Viktor
Hi, I try to run the following code: def generate_zip(object_list, template): result = StringIO.StringIO() zipped = zipfile.ZipFile(result, w) for object in object_list: pdf = generate_pdf(object, template) if not pdf: raise IOError(Problem with generating

Re: how to zip a StringIO object?

2009-10-28 Thread Dave Angel
Nagy Viktor wrote: Hi, I try to run the following code: def generate_zip(object_list, template): result = StringIO.StringIO() zipped = zipfile.ZipFile(result, w) for object in object_list: pdf = generate_pdf(object, template) if not pdf: raise