Giter Club home page Giter Club logo

Comments (14)

chrisjones-brack3t avatar chrisjones-brack3t commented on May 22, 2024

I like the idea of the django-spreadsheetresponsemixin without the requirement of the excel library. CSVResponseMixin maybe?

@kennethlove and I looked over the code and one thing I noticed that might be nice to set is the filename of the csv returned. It would be nice to dynamically set that.

How long has the django-spreadsheetresponsemixin code been running in production?

from django-braces.

kennethlove avatar kennethlove commented on May 22, 2024

On both of these, django-braces is released under an MIT license and I'd rather not have to deal with dual licensing, so your submissions would need to be MIT licensed.

django-sortable-listview looks really promising. A couple of things I've seen:

from django-braces.

birdsarah avatar birdsarah commented on May 22, 2024

Thanks for the speedy response.

"I like the idea of the django-spreadsheetresponsemixin without the requirement of the excel library. CSVResponseMixin maybe?" - sounds great

"might be nice to set is the filename of the csv returned. It would be nice to dynamically set that." +1 (already on our todo list - (birdsarah/django-spreadsheetresponsemixin#4)

"How long has the django-spreadsheetresponsemixin code been running in production?"- barely begun - its gone up on a client project last week, which has teased out some issues (UTF-8, headers etc), but certainly in infant stage (partly why it seemed like a good time to ping you) so am happy to wait for as long as you think appropriate. Will work on splitting out the CSVResponse piece though so its easier to reuse when ready.

Quick question: You use pytest and I spotted a couple of tests that use py.test assertion style, but many use unittest style, is there a convention you prefer.

from django-braces.

kennethlove avatar kennethlove commented on May 22, 2024

re: assertions. The tests end up being written by contributors as things come in, so we don't really have a defined format yet (we're working on a CONTRIBUTION doc). Since the tests themselves are written in and run by py.test, the py.test assertion style is probably more appropriate.

from django-braces.

kennethlove avatar kennethlove commented on May 22, 2024

Also, just for sanity's sake, when you submit these, please submit them as separate PRs.

from django-braces.

birdsarah avatar birdsarah commented on May 22, 2024

"MIT License" - no problem.

Thanks for the tips on sortable-listview, will add to the TODO list, haven't thought through MultipleObjectMixin.

On django-sortable-listview, it currently has some default template and css, the css can totally go, the templates are kind of useful, but maybe they can just go into the documentation. Do you have a preference?

"Also, just for sanity's sake, when you submit these, please submit them as separate PRs." of course :D just striking up a conversation

from django-braces.

kennethlove avatar kennethlove commented on May 22, 2024

We haven't provided any templates for users up to this point (since everything is a behind-the-scenes mixin) so I'm not sure about providing them. Definitely don't need to provide the CSS, since lots of people won't want to use Bootstrap. I think, so long as the templates aren't expected by the mixin, it would be OK to include them.

from django-braces.

chrisjones-brack3t avatar chrisjones-brack3t commented on May 22, 2024

^^ 👍

from django-braces.

birdsarah avatar birdsarah commented on May 22, 2024

sounds like a plan - thanks!

from django-braces.

birdsarah avatar birdsarah commented on May 22, 2024

FWIW, django-sortablelistview is in production (http://www.inasp.info) - been up for a month with no apparent issues

from django-braces.

samastur avatar samastur commented on May 22, 2024

Sarah, how about creating an -extra package for templates and CSS?

from django-braces.

kennethlove avatar kennethlove commented on May 22, 2024

@samastur if it's only a couple of templates and no static files, I don't see the point in creating a maintaining a completely separate package.

from django-braces.

chrisjones-brack3t avatar chrisjones-brack3t commented on May 22, 2024

Old issue. If anyone is interested in making this happen a PR would be awesome.

from django-braces.

birdsarah avatar birdsarah commented on May 22, 2024

Ugh - can't believe this is coming up on two years :s Thanks for closing it. Will certainly open a new PR when my backlog and ambition are a little more in sync!

from django-braces.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.