[req] New method: RequestSessionBase.find().
This method does what find_entities and find_one_entity did, except it
returns the resultset itself.
In addition, it accepts 'reverse_' arguments and check that the relations
actually exists on the entity before executing the query.
Also, reimplement find_one_entity and find_entity based on the new function
so they benefit from the more complete implementation, and deprecate them.
Note: List of values in kwargs are NOT supported in this initial
implementation.
Closes #3361290
# for el5, force use of python2.6%%if 0%%{?el5}%%define python python26%%define __python /usr/bin/python2.6%%else%%define python python%%define __python /usr/bin/python%%endif%%{!?_python_sitelib: %%define _python_sitelib %%(%%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}Name: %(distname)sVersion: 0.1.0Release: logilab.1%%{?dist}Summary: %(shortdesc)sGroup: Applications/InternetLicense: %(license)sSource0: %(distname)s-%%{version}.tar.gzBuildArch: noarchBuildRoot: %%{_tmppath}/%%{name}-%%{version}-%%{release}-buildrootBuildRequires: %%{python} %%{python}-setuptoolsRequires: cubicweb >= %(version)s%%description%(longdesc)s%%prep%%setup -q -n %(distname)s-%%{version}%%if 0%%{?el5}# change the python version in shebangsfind . -name '*.py' -type f -print0 | xargs -0 sed -i '1,3s;^#!.*python.*$;#! /usr/bin/python2.6;'%%endif%%installNO_SETUPTOOLS=1 %%{__python} setup.py --quiet install --no-compile --prefix=%%{_prefix} --root="$RPM_BUILD_ROOT"# remove generated .egg-info filerm -rf $RPM_BUILD_ROOT/usr/lib/python*%%cleanrm -rf $RPM_BUILD_ROOT%%files%%defattr(-, root, root)/*