[Zope] newbie question: parameter passing for ZSQL Object

Stephan Richter srichter@cbu.edu
Sun, 28 May 2000 10:40:22 -0700


>With <dtml-call insertItem>, Zope gives me following error message:

If the parameters are from another SQL statement, then the SQL method will 
not find them, since not the entire namespace is sent.

Try:
<dtml-call "insertItem(param1=pvalue1, param2=pvalue2, param3=pvalue3, 
param4=pvalue4)">

pvalueX can be also a variable. If your variables are called paramX, then 
the following will work:

<dtml-call "insertItem(param1=param1, param2=param2, param3=param3, 
param4=param4)">

That is typical Python syntax. So in case you want to know why and how that 
works, read a little in the Python documentation (which is btw excellent.)

Regards,
Stephan
--
Stephan Richter
CBU - Physics and Chemistry
Web2k - Web Design/Development & Technical Project Management