[Product-Developers] Re: ZSQL call problem
Derek Broughton
news at pointerstop.ca
Wed Oct 1 19:52:20 UTC 2008
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 ??
Yes ...
> Also, without arguments, its working fine !!
So it would appear you don't actually have any arguments, because if I
execute a ZSQL methd that _has_ an argument (even if there's no
corresponding <dtml-sqlvar> tag in the query), I get a ProgrammingError.
otoh, if I execute a query with a <dtml-sqlvar> tag, and no argument, I get
a ValueError.
Are you sure you're acquiring the ZSQL in the right context?
--
derek
More information about the Product-Developers
mailing list