[Zope] Writing to SQL Databases

Michel Pelletier michel@digicool.com
Mon, 19 Jul 1999 17:19:48 -0400


> -----Original Message-----
> From: Ross J. Reedstrom [mailto:reedstrm@wallace.ece.rice.edu]
> Sent: Monday, July 19, 1999 2:07 PM
> To: Sean McMains
> Cc: 'zope@zope.org'
> Subject: Re: [Zope] Writing to SQL Databases
> 
> 
> 
> <!--#call addEntry(REQUEST)-->
> 

This will work if quoted.

> or perhaps
> 
> <!--#call addEntry(REQUEST=REQUEST)-->

This will not work, a) because it's not quoted and b) because ZSQL
methods *do* expect the data structure DTML calls 'REQUEST' but ZSQL
methods call it 'request'.  Although many Zope method signatures contain
'REQUEST', some contain 'request' or 'req' but expect the same data
structure.  This is the danger Zone when using keyword argument.  In the
case of ZSQL methods, it's 'request=REQUEST'.  It would probably be best
to stick with your first example, quoted.

-Michel

> 
> should do it.
> 
> Ross
> -- 
> Ross J. Reedstrom, Ph.D., <reedstrm@rice.edu> 
> NSBRI Research Scientist/Programmer
> Computer and Information Technology Institute
> Rice University, 6100 S. Main St.,  Houston, TX 77005
> 
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://www.zope.org/mailman/listinfo/zope
> 
> (For developer-specific issues, use the companion list,
> zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev )
>