Personal tools
You are here: Home Lists ZPUG DC List Archives 2005 2005-04 how to store ZSQL query results in a python var / prabuddha ray <buddharay@gmail.com>
Navigation
Log in


Forgot your password?
New user?
Mailing Lists
You can read our ZPUGDC mailing list archives online.
You can subscribe to our mailing list:
Book Review

The Definitive Guide to Plone

Reviewer: joel
 

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 :
     (&lt;Shared.DC.ZRDB.Results.Results instance at 0x41dd966c&gt;)

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 ]
This should help:

	http://www.zope.org/Members/spinwing/ZSQL_Results

Best,
Jules

On Apr 7, 2005, at 7:10 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 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:[...]
[...]

Powered by Plone, the Open Source Content Management System

This site conforms to the following standards: