Hi all, I'm wondering about if .update_or_insert was enhanced or not yet?

Thanks in advance.
Christian.

El jueves, 3 de mayo de 2012 09:46:46 UTC-4, Anthony escribió:
>
> You're manual version updates only two fields, whereas update_or_insert 
>>> updates six fields -- maybe that's the difference.
>>>
>>> Anthony 
>>>
>>
>> Yes, but I want to insert a new record with six fields, but update only 
>> two if the record exists. How to do that with .update_or_insert?
>>
>
> Looks like you can't. Might be a nice enhancement, though. Maybe it could 
> take "_insert_fields" and "_update_fields" arguments, which could be lists 
> of field names to insert and update, respectively.
>
> Anthony 
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to