[Zope] parameter transfer to a zsql-method (lists,
dictionaries etc.)
Dieter Maurer
dieter at handshake.de
Mon Aug 11 21:29:00 EDT 2003
Elena Schulz wrote at 2003-8-11 10:56 +0200:
> >I think your parameter construction is wrong. You're telling Zope that a
> list is a string, and furthermore, to iterate over a string, which won't
> work.
>
> In the ZSQLGuide I've got it says that ids:list:int indicates that ids is a
> list of integers. So columns:list:string should mean that columns is a list
> of strings. But even columns:list didn't work.
>
> After further investigation I think the parameter-parsing of zsql-methods is
> quite restricted and it's better to pass "complicated" structures via a
> single dictionary. I'll try that. But still I would like to know how it
> would work with lists and dtml_in constructs. Anyway some complete examples
> including the parameter part would enhance the ZSQLGuide a lot.
At least in old time, the argument type casting of ZSQL Methods
was working only in special cases. I would not trust it.
When an argument has the correct type (i.e. a sequence), you can use "dtml_in"
in the normal way.
Dieter
More information about the Zope
mailing list