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

Christophe de Vienne christophe at unlish.com
Mon Dec 9 22:51:01 CET 2013


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.


Christophe



More information about the Cubicweb mailing list