Polyconseil/minimodels — pull request #1 by dzen (2013-03-25 10:12:24+00:00)
Title: Wip

Work in progress.

Sample usage:

class FullMiniModel(base.Model):
string = fields.StringField(indexable=True)
integer = fields.IntegerField()
history = managers.ElasticSearchManager()
last = managers.RedisManager()

instance = models.FullMiniModel(string="string", integer=42)
instance.save()

es_instance = models.FullMiniModel.history.get(id=instance.id['history'])
redis_instance = models.FullMiniModel.last.get(id=instance.id['last'])