Re: using axiom.dependency for powerups in queries
Tristan Seligmann <[email protected]> Mon, 10 Mar 2008 18:52:06 +0200
| Newsgroups | gmane.comp.python.quotient.dev |
|---|---|
| Message-ID | <[email protected]> |
--===============0286114508== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="1SQmhf2mF2YjsYvc" Content-Disposition: inline --1SQmhf2mF2YjsYvc Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Robert Gravina <[email protected]> [2008-03-10 13:12:58 +0900]: > # c =3D s.findFirst(Person, AND(Contractor.installedOn =3D=3D Person.s= toreID, Contractor.rate =3D=3D Decimal("40"))) > # assert c is p I would probably write this query something like: contractor =3D s.findFirst(Contractor, Contractor.rate =3D=3D Decimal("40")) assert installedOn(contractor) is p --=20 mithrandi, i Ainil en-Balandor, a faer Ambar --1SQmhf2mF2YjsYvc Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.8 (GNU/Linux) iEYEARECAAYFAkfVZzYACgkQpNuXDQIV94qfMACfeGG2CmRX953NtbZvAVlSK0JV kjoAn0wz721L9I+0BkU94cQbJCI4lRvD =hRrw -----END PGP SIGNATURE----- --1SQmhf2mF2YjsYvc-- --===============0286114508== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline