--On Donnerstag, 7. April 2005 4:10 Uhr -0700 prabuddha ray <[EMAIL PROTECTED]> wrote:

from a newbie,
        i've this ZSQLmethod returning me a string  only. how do i
store it a var in my python script.
eg., userlevel = container.getUserLevel(uname=user)

when i print it using html_quote as :
   print "(%s)" % html_quote(userlevel)
        return printed
output is :
     (&lt;Shared.DC.ZRDB.Results.Results instance at 0x41dd966c&gt;)

The RDBMS chapter of the Zope Book that call a ZSQL method returns something that behaves like a list of rows. That's what you see when you look at the output. Accessing and working with ZSQL methods is carefully described in the Zope Book (2.7 edition) - isn't it?

-aj

Attachment: pgpNpZ3Jmigbo.pgp
Description: PGP signature

_______________________________________________
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )

Reply via email to