liberation/redis-limpyd — pull request #9 by twidi (2012-06-03 20:48:04+00:00)
Title: Provide a simple way to override connection settings per model

It's a pull request to start discuss about the subject, and the first and easy way i found to implement it for my project.

The idea is to define a `get_connection` classmethod on the `RedisModel` class (in fact it's on the `RedisProxyCommand` class), and then call on every previous call to the main `get_connection` method from `limpyd/__init__.py`), which is called by default.

Now, it's easy to override it to define it's own connection settings for each model, or one for all with a base class on top on `RedisModel`

What do you think about that ?