lsbardel / python-stdnet

Object-data mapper and advanced query manager for non relational databases
http://lsbardel.github.com/python-stdnet/
BSD 3-Clause "New" or "Revised" License
120 stars 20 forks source link

Zset field API #34

Closed lsbardel closed 12 years ago

lsbardel commented 12 years ago

Zset add new item by passing a score and a value. Zset fields should be able to bypass passing the score if a model is used as value.

saidimu commented 12 years ago

I haven't been able to find a ZsetField in odm.structfields (only the Zset structure exists in odm.struct).

Was this issue referring to Zset or ZsetField or both?

lsbardel commented 12 years ago

There is no ZsetField as such. To have an ordered set as field (which is mapped to a zset in redis) use odm.SetField(ordered=True) in your model.