[prev in list] [next in list] [prev in thread] [next in thread] 

List:       zope-db
Subject:    Re: [Zope-DB] Accessing ZSQL Method results from Python Script
From:       dman <dman () dman ! ddts ! net>
Date:       2002-04-26 14:48:49
[Download RAW message or body]


On Fri, Apr 26, 2002 at 10:53:30AM +0000, Julián Muñoz wrote:
| This is explained in the zope book
| 
| I think it is :
| 
| retvalue=container.call_zsql()
| 
| retvalue[0].colname
| 
| 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

-- 

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
 
GnuPG key : http://dman.ddts.net/~dman/public_key.gpg


[Attachment #3 (application/pgp-signature)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic