sqlalchemy-imageattach
sqlalchemy-imageattach copied to clipboard
SQLAlchemy extension for attaching images to entities.
image_attachment is overriding the uselist kwargs causing sqlalchemy to still uselist in its representation. This causes code that inspects relationships to mistake the single image for a list of images....
Windows for some reason have a [260 character limit on file path](https://msdn.microsoft.com/en-us/library/windows/desktop/aa365247%28v=vs.85%29.aspx#maxpath) and tests might fail while making a temporary file with a long name. As a temporary solution I...
When `Session` is set with `autocommit=False` option which is default of SQLAlchemy, image entities that have to be successfully inserted are not committed. Image files in the storage are stored...
I am running into an issue when attempting to use implicit contexts within a Pyramid application. Using Pyramid's built-in BeforeRender event I can call the push_store_context function at the beginning...
In `ImageSet`, `ImageSet.locate()` fetches DB every time when it called. I think It must be cached or reused.
Consider: ``` python a = Session() b = Session() add_images_to(a) add_images_to(b) a.commit() b.rollback() ``` `a.commit` will commit `b`s images as well, because `_stored_images` is global state! It should be session-specific...
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....
Sometimes image files should be spread to two or more physical stores by their `object_type`. We could implement partitioned storage that implements `Store` interface e.g.: ``` python PartitionedStore([ ('user_picture', user_store),...
@kkung reported there sometimes become duplicate original images for the same entity.