-
Notifications
You must be signed in to change notification settings - Fork 25
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
Implement File
abstraction
#13
Comments
If we will do more abstraction as you suggest, we should rename its name first of all. 😄 Frankly I’ve been asked the same needs several times before, but currently have no idea how to achieve that. |
I was thinking the same thing about the name change, but what you have going is nice and I didn't think it would be too hard to pull out the image specific functions of the |
+1 for this |
+1 One way to implement this could be:
Alright if I do this and submit a pull request? |
@mwhite +1 |
@mwhite Yay, I’ll be pleased and review the patch if you submit it. Though the project name should be changed, too. |
On second thought, maybe it would be better to have separate Then a question would be whether to use joined table inheritance or one of the other inheritance schemes. Another issue is if we include the ability to generate thumbnails for different types of videos and documents, which ones should have the external libraries be hard dependencies vs optional dependencies, and how to handle that. Also, generating thumbnails might be something that should be a background task independent of the save transaction, so perhaps there should be a way to configure sqlalchemy-imageattach to do that with a task queue. |
Michael, that is way better. There's a lot of meta information that only makes sense --p On Wed, Aug 20, 2014 at 1:34 PM, Michael White [email protected]
|
+1 for this. I would love a generic file implementation. |
I no longer have a need for this in my project so I probably won't be doing it like I said. |
This library looks great and I was just thinking that it might be useful to abstract things a bit to allow for generic file attachments to a particular SQLAlchemy model/entity. Perhaps this can be achieved with the current API but I'm having a hard time seeing if its possible given the focus on images.
The text was updated successfully, but these errors were encountered: