Skip to content

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

Merged
digitalresistor merged 1 commit into
Pylons:masterfrom
michilu:master
Jul 30, 2016
Merged

Support Response.body_file.tell() method for ZipFile friendly#117
digitalresistor merged 1 commit into
Pylons:masterfrom
michilu:master

Conversation

@michilu
Copy link
Copy Markdown
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
Copy Markdown
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