dahlia / sqlalchemy-imageattach

SQLAlchemy extension for attaching images to entities.
https://sqlalchemy-imageattach.readthedocs.io/
MIT License
116 stars 25 forks source link

Partitioned storages #6

Open dahlia opened 11 years ago

dahlia commented 11 years ago

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.:

PartitionedStore([
    ('user_picture', user_store),
    (re.compile(r'^comic_'), comic_store),
    (['post_attachment', 'comment_attachment'], forum_store)
], default=default_store)
peterlada commented 10 years ago

+1