[Cubicweb] Proposal: new method ResultSet.one()

Christophe de Vienne christophe at unlish.com
Thu Dec 12 16:23:32 CET 2013


Le 12/12/2013 09:46, Julien Cristau a écrit :
> On Wed, Dec 11, 2013 at 18:49:54 +0100, Christophe de Vienne wrote:
>
>> Le 11/12/2013 18:46, Julien Cristau a écrit :
>>> On Mon, Dec  9, 2013 at 22:51:01 +0100, Christophe de Vienne wrote:
>>>
>>>> Le 09/12/2013 09:52, Denis Laxalde a écrit :
>>>>>> If you think it make sens I can add a find() function (with reverse_ !),
>>>>>> and reimplement find_entities and find_one_entity on top of it.
>>>>>> To be honnest I would even suggest to deprecate, at some point, the
>>>>>> usage of find_entities and find_one_entity, but one() thing at a time
>>>>>> :-).
>>>>> Not a bad idea, IMHO.
>>>> And here it is :
>>>>
>>>> http://www.cubicweb.org/patch/3361288
>>>>
>>>> Thanks for the different feedback I had from the ml and the jabber chats.
>>>>
>>>> The latest patch includes checking the existence of the relations before
>>>> executing the query.
>>>>
>>> Both patches merged for 3.18.0, thanks!
>> \o/
>>
>> Should I add entries to doc/3.18.rst ?
>>
> That'd be great.
Done in http://www.cubicweb.org/patch/3374384


Christophe



More information about the Cubicweb mailing list