|
|
how to store ZSQL query results in a python var / prabuddha ray <buddharay@gmail.com>
how to store ZSQL query results in a python var
prabuddha ray <buddharay(at)gmail.com> |
2005-04-07 05:55:42 |
[
FULL ]
|
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>)
please help.[...]
|
Re: [ZPUGDC] how to store ZSQL query results in a python var / Jules <jules@jules.com>
Re: [ZPUGDC] how to store ZSQL query results in a python var
Jules <jules(at)jules.com> |
2005-04-07 06:54:33 |
[
FULL ]
|
Re: how to store ZSQL query results in a python var / prabuddha ray <buddharay@gmail.com>
Re: how to store ZSQL query results in a python var
prabuddha ray <buddharay(at)gmail.com> |
2005-04-08 02:57:54 |
[
FULL ]
|
thanks tino, jules seems lot for me to do .
On Thu, 7 Apr 2005 08:08:51 -0400, Jules <jules(at)jules.com> wrote:[...]
[...]
|
Re: [ZPUGDC] Re: how to store ZSQL query results in a python var / Jules <jules@jules.com>
Re: [ZPUGDC] Re: how to store ZSQL query results in a python var
Jules <jules(at)jules.com> |
2005-04-08 06:12:46 |
[
FULL ]
|
Yes, programming is a lot like that sometimes.
On Apr 8, 2005, at 4:12 AM, prabuddha ray wrote:
[...]
|
Re: how to store ZSQL query results in a python var / prabuddha ray <buddharay@gmail.com>
Re: how to store ZSQL query results in a python var
prabuddha ray <buddharay(at)gmail.com> |
2005-04-08 06:15:26 |
[
FULL ]
|
ok next problemo,
I looked in the advanced page templates zopebook chapter and tried this
I set the value of a hidden form field by a cookie value.
e.g; invalidval request/cookies/login|nothing;
i tried this :
<input name="invalid" type="hidden" value="string: ${invalidval}">
and also this
<input name="invalid" type="hidden" tal:attributes="value invalidval">
but it is rendering the text in quotes directly.
what is the correct way.
On Fri, 8 Apr 2005 07:27:05 -0400, Jules <jules(at)jules.com> wrote:[...]
[...]
|
|