[Cubicweb] Proposal: new method ResultSet.one()
Julien Cristau
julien.cristau at logilab.fr
Wed Dec 11 18:46:02 CET 2013
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!
Cheers,
Julien
--
Julien Cristau <julien.cristau at logilab.fr>
Logilab http://www.logilab.fr/
Informatique scientifique & gestion de connaissances
More information about the Cubicweb
mailing list