[Zope] ZSQL result passing

Dieter Maurer dieter at handshake.de
Thu Mar 10 13:55:23 EST 2005


Henk Jansen wrote at 2005-3-9 21:40 +0100:
>> >I'd hoped that in:
>> ><dtml-let members=my_zsql_members_call>
>> >
>> >   <dtml-in my_zsql_iterator_call prefix="seq">
>> >        <dtml-var my_python_call(item=seq_item,members=members)>

Here is a bug! "..." are missing around "my_python_call(...)"!

>> >  </dtml-in>
>> >
>> ></dtml-let>
> ...
>I don't get any error at all! In the python script the members parameter
>is just equal to its default argument "" (i.e. an empty string).

This is (almost) impossible unless the objects returned
by "my_zsql_interator_call" provide access to a different "members"
(and with "" as value).

Try:

  <dtml-let some_name_surely_not_used_elsewhere=my_zsql_members_call>
    <dtml-var "my_python...(... members=some_name_surely_not_used_elsewhere)">

In case the "..." are really missing in your code (and not only
in your message), then the code is not executed at all
and you wrong parameter value must come from elsewhere.

-- 
Dieter


More information about the Zope mailing list