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

Partitioned storages #6

Open
dahlia opened this issue Jun 18, 2013 · 1 comment
Open

Partitioned storages #6

dahlia opened this issue Jun 18, 2013 · 1 comment

Comments

@dahlia
Copy link
Owner

dahlia commented Jun 18, 2013

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
Copy link
Contributor

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants