My bad, seems is explained here:

http://riak-python-client.readthedocs.org/en/master/datatypes.html

By the way, what's the difference between these calls?

*.*registers['user']*.*assign("alex")
*.*registers['user']*.*set("alex")
*.*registers['user']*.*set_value("alex")

Thanks,
Alex

On Fri, Dec 19, 2014 at 4:31 PM, Alex De la rosa <alex.rosa....@gmail.com>
wrote:
>
> Cool! good to know :) I think is not explained anywhere in the docs.
>
> Thanks!
> Alex
>
> On Fri, Dec 19, 2014 at 3:50 PM, Sean Cribbs <s...@basho.com> wrote:
>>
>> Alex,
>>
>> This will remove the register from the map:
>>
>> del obj.registers['something']
>> obj.store()
>>
>>
>> On Fri, Dec 19, 2014 at 5:37 AM, Alex De la rosa <alex.rosa....@gmail.com
>> > wrote:
>>
>>> Hi there,
>>>
>>> This is a pretty dumb question but I think I have never recalled doing
>>> it before. Imagine that I have a register called "something" with a value:
>>>
>>> obj.registers['something'].assign('blah')
>>>
>>> If later on I want to remove this "something" register from the riak map
>>> object, how to do it? I don't seem to find anywhere in the documentation
>>> how to remove a register.
>>>
>>> I could set up an empty string: obj.registers['something'].assign(''),
>>> as I see that when you fetch a register that doesn't exist it returns an
>>> empty string instead of a None. Is this the only way? Or can we remove it
>>> in some other way?
>>>
>>> Thanks,
>>> Alex
>>>
>>> _______________________________________________
>>> riak-users mailing list
>>> riak-users@lists.basho.com
>>> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
>>>
>>>
>>
>> --
>> Sean Cribbs <s...@basho.com>
>> Sr. Software Engineer
>> Basho Technologies, Inc.
>> http://basho.com/
>>
>
_______________________________________________
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

Reply via email to