[Product-Developers] ZSQL call problem

monks mayankmathur at tetrain.com
Fri Oct 3 04:25:53 UTC 2008



So, Plz tell me what to do now ?
I've ZSQL "search" method , with multiple argm, and i need to display the
result in Web Browser.
So far, I've used Python script, call ZSQL method with param, and then
called PT which is supposed to display Search result, from ZSQL method.

thanks 




Derek Broughton-2 wrote:
> 
> Tim Knapp wrote:
> 
>> Hi Mayank,
>> 
>> On Wed, 2008-10-01 at 02:49 -0700, monks wrote:
>>> hello all
>>> Im trying to call ZSQL method with 1 argument from my Python script
>>> like:
>>>        " context.Intranet(end_dt=end_a1) "
>>> Isn't this the right way to call ??
>> 
>> No, this isn't the right way to call a ZSQL script. If you have a look
>> at the ZSQL documentation available on zope.org (iirc) the arguments you
>> specify in a ZSQL method are sourced either via acquisition (on the
>> container/etc) or from the REQUEST, i.e. you don't specify them when you
>> call the method.
> 
> Well, it works for me...
> 
> I suppose it matters where he's actually _written_ that.
> -- 
> derek
> 
> 
> _______________________________________________
> Product-Developers mailing list
> Product-Developers at lists.plone.org
> http://lists.plone.org/mailman/listinfo/product-developers
> 
> 


-----

Regards,
Mayank
-- 
View this message in context: http://n2.nabble.com/ZSQL-call-problem-tp1131065p1140819.html
Sent from the Product Developers mailing list archive at Nabble.com.





More information about the Product-Developers mailing list