Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Response.body_file.tell() method for ZipFile friendly #117

Merged
merged 1 commit into from
Jul 30, 2016

Conversation

michilu
Copy link
Contributor

@michilu michilu commented Aug 23, 2013

For example, such as generate the Apple's Passbook.

>>> writer = zipfile.ZipFile(ResponseBodyFile(Response()), 'w')
>>> writer.writestr('zinfo_or_arcname', b'foo')
>>> writer.close()

Thanks.

For example, such as generate the Apple's Passbook.

>>> writer = zipfile.ZipFile(ResponseBodyFile(Response()), 'w')
>>> writer.writestr('zinfo_or_arcname', b'foo')
>>> writer.close()
@digitalresistor digitalresistor merged commit 9b36ecb into Pylons:master Jul 30, 2016
digitalresistor added a commit that referenced this pull request Jul 30, 2016
This adds the tell() function to ResponseBodyFile
@digitalresistor
Copy link
Member

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants