Re: [Zope] how to store ZSQL query results in a python var

2005-04-07 Thread Tino Wildenhain
Am Donnerstag, den 07.04.2005, 04:10 -0700 schrieb prabuddha ray: > 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

Re: [Zope] how to store ZSQL query results in a python var

2005-04-07 Thread Andreas Jung
--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 :

[Zope] how to store ZSQL query results in a python var

2005-04-07 Thread prabuddha ray
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 : (