7 Apr
2005
7 Apr
'05
11:20 a.m.
--On Donnerstag, 7. April 2005 4:10 Uhr -0700 prabuddha ray <buddharay@gmail.com> 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 : (<Shared.DC.ZRDB.Results.Results instance at 0x41dd966c>)
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