[Zope-DB] Accessing ZSQL Method results from Python Script
dman
dman@dman.ddts.net
Fri, 26 Apr 2002 09:48:49 -0500
--i9LlY+UWpKt15+FH
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
On Fri, Apr 26, 2002 at 10:53:30AM +0000, Juli=E1n Mu=F1oz wrote:
| This is explained in the zope book
|=20
| I think it is :
|=20
| retvalue=3Dcontainer.call_zsql()
|=20
| retvalue[0].colname
|=20
| Where 0 is the line number
| colname is the name of the column
Yep. The SQL Method returns a list of rows, and each row has named
elements corresponding to the columns in the table.
-D
--=20
After you install Microsoft Windows XP, you have the option to create
user accounts. If you create user accounts, by default, they will have
an account type of administrator with no password.
-- bugtraq
=20
GnuPG key : http://dman.ddts.net/~dman/public_key.gpg
--i9LlY+UWpKt15+FH
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iEYEARECAAYFAjzJaNEACgkQO8l8XBKTpRTRKgCgtAaGEegX+9RMnMpN905gVdu7
sCAAoLrp0VjsehjooAr2ksd80ENRwNhd
=3p2D
-----END PGP SIGNATURE-----
--i9LlY+UWpKt15+FH--