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

Julien Cristau julien.cristau at logilab.fr
Thu Dec 12 09:46:23 CET 2013


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.

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