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

Use a function to define file_name #1

Open
philippze opened this issue Oct 9, 2013 · 5 comments
Open

Use a function to define file_name #1

philippze opened this issue Oct 9, 2013 · 5 comments
Labels

Comments

@philippze
Copy link
Contributor

Very nice module!

I've added the method get_file_name to the ExcelView in analogy to get_queryset which is inherited by View. I need this flexibility for one of my projects. Should I push it to your repository?

@bitterjug
Copy link
Owner

Hi! Delighted to have a user.
Sure; is there a test for it?

Mark

On Wed, Oct 9, 2013 at 9:44 AM, Philipp Zedler [email protected]:

Very nice module!

I've added the method get_file_name to the ExcelView in analogy to
get_queryset which is inherited by View. I need this flexibility for one
of my projects. Should I push it to your repository?


Reply to this email directly or view it on GitHubhttps://github.com//issues/1
.

@philippze
Copy link
Contributor Author

Hi! Yes, of course, there should be a test.
However, there are no tests at all for the ExcelView class yet.
I'm thinking of also adding some non-trivial extensions.
Only if I do that, I'll write tests.
Philipp

@bitterjug
Copy link
Owner

LOL! Of course, I only tested the ColSpec bit.
I've been talking with a colleague about mashing it up with her spreadsheet
view, which is better tested and more robustly conceived.
Check this out: https://github.com/birdsarah/django-spreadsheetresponsemixin

I consider the ColSpec to be the real innivation of my library and hacked
the view bit on later as part of a project I was using it in.
Maybe the answer is to offer Col and Colspec as a separate package...

On Mon, Oct 14, 2013 at 10:47 AM, Philipp Zedler
[email protected]:

Hi! Yes, of course, there should be a test.
However, there are no tests at all for the ExcelView class yet.
I'm thinking of also adding some non-trivial extensions.
Only if I do that, I'll write tests.
Philipp


Reply to this email directly or view it on GitHubhttps://github.com//issues/1#issuecomment-26245578
.

philippze added a commit to philippze/django-excel-view that referenced this issue Oct 15, 2013
@philippze
Copy link
Contributor Author

I've pushed a tiny bit of code for the case you want to include it.

Sounds good to use the well-tested view. However, before you extend your module: Do you have a good reason, why you don't use the import-export module?
https://github.com/bmihelac/django-import-export
I have a very bad reason: I have do cope with a Django1.3 installation.

bitterjug added a commit that referenced this issue Oct 17, 2013
Issue #1. I added the possibility to define the file_name with a function.
@bitterjug
Copy link
Owner

Yeah, I spotted this recently and I really like the sound of tablib.
Our problem this week is openpyxl eating all our memory on import. Sigh

On Tue, Oct 15, 2013 at 8:47 PM, Philipp Zedler [email protected]:

I've pushed a tiny bit of code for the case you want to include it.

Sounds good to use the well-tested view. However, before you extend your
module: Do you have a good reason, why you don't use the import-export
module?
https://github.com/bmihelac/django-import-export
I have a very bad reason: I have do cope with a Django1.3 installation.


Reply to this email directly or view it on GitHubhttps://github.com//issues/1#issuecomment-26366166
.

@ghost ghost added the 3 - Done label Nov 4, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants