-
Notifications
You must be signed in to change notification settings - Fork 136
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
Enable export support for already opened files #125
Conversation
@@ -18,6 +18,7 @@ | |||
from __future__ import unicode_literals | |||
|
|||
import datetime | |||
import StringIO |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The StringIO
module is gone on Python 3. We do not support it yet but using io.BytesIO
or io.StringIO
now will make the migration easier. Could you please change it?
Hello, @jeanferri. Thanks for your contribution. :-) I made two comments, can you please address them? And a curiosity: what is your use case to need binary XLS data (instead of writing to the filesystem)? Are you going to use it to stream data over the Web? Thanks again. |
Ok, I'll try to make compatible also with python3, because we are still using python 2.7 with Plone 4.3, and yes, I'm using it into an web application and it's because I dont need to write it to filesystem. This last commit fix an error on older versions of urllib, for example, the original python-urllib3 package in the last Ubuntu LTS. |
May it #125 (comment) be like this last commit? |
@jeanferri, you can just use: from io import BytesIO And it will work on Python 2.7 and 3.x. ;-) |
Ok, you win! ;-) |
This last commit closes #80 |
@jeanferri, I'm working on your branch but on my fork (feature/support-already-opened-files) and already rebased it with
I'll work on this list on the next days. |
@jeanferri, I updated my branch. There are some tests missing and I'll work on this tomorrow. |
@jeanferri, I merged my branch into Thanks! |
Ok, thank you! I'll test it and send you another pull request with more things I'm doing... ;-) |
No description provided.