Re: Question Concerning Z SQL Method and Class Bindings
Andreas Jung <[email protected]> Wed, 26 May 2010 06:25:54 +0200
| Newsgroups | gmane.comp.web.zope.database |
|---|---|
| Organization | ZOPYX Ltd & Co. KG |
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format. --------------010309000308000002000906 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Mark Phillips wrote: > Peter, > > I don't think I phrased my question very well. Also, I am coming from a > Java background, so I am thinking about result sets, which may not be > applicable to Python. > > If I have a Z SQL Method query that returns multiple rows to a brains > class, how do I > > (1) reference the returned object that has all the rows > (2) reference a particular row in the returned object > (3) reference a particular piece of data in the returned object. > > What is the returned object - list, dictionary, some special object with > associated APIs? > > Where is this documented? I can't seem to find it in the Zope 2 book. > > If you want object-oriented approach in your Zope app: use an ORM like SQLAlchemy or Storm. Sqlalchemy + zope.sqlalchemy (or z3c.sqlalchemy) are widely used for SQL connectivity inside Zope/Plone/Python apps. - -aj -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkv8otEACgkQCJIWIbr9KYy+4ACgr0LCPDN/lPuYNGDq7AGxXP+P wK8AnjQMDVx3sYd1wlMIYxf6Cd7JFcBG =dM/l -----END PGP SIGNATURE----- --------------010309000308000002000906 Content-Type: text/x-vcard; charset=utf-8; name="lists.vcf" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="lists.vcf" begin:vcard fn:Andreas Jung n:Jung;Andreas org:ZOPYX Ltd. & Co. KG adr;quoted-printable:;;Charlottenstr. 37/1;T=C3=BCbingen;;72070;Germany email;internet:[email protected] title:CEO tel;work:+49-7071-793376 tel;fax:+49-7071-7936840 tel;home:+49-7071-793257 x-mozilla-html:FALSE url:www.zopyx.com version:2.1 end:vcard --------------010309000308000002000906 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Zope-DB mailing list [email protected] https://mail.zope.org/mailman/listinfo/zope-db --------------010309000308000002000906--