It looks to me like your error is here:
> filters = key_filter.tokenize(":", 4) + (key_filter.starts_with('20121223')
> and key_filter.string_to_int().less_than(2012122423))
The 'and' there is getting interpreted as a logical and:
>>> key_filter.starts_with('20121223') and
>>> key_filter.string_to_int().less_than(2012122423)
[['string_to_int'], ['less_than', 2012122423]]
You have to use the sadly non-idiomatic '&' to get it to do what
you're trying to do:
>>> key_filter.tokenize(":", 4) + (key_filter.starts_with('20121223') &
>>> key_filter.string_to_int().less_than(2012122423))
[['tokenize', ':', 4], ['and', [['starts_with', '20121223']],
[['string_to_int'], ['less_than', 2012122423]]]]
_______________________________________________
riak-users mailing list
[email protected]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com