[Zope] Error, exceptions.KeyError: (anything)

Ross J. Reedstrom reedstrm@wallace.ece.rice.edu
Tue, 6 Jul 1999 18:23:18 -0500


On Tue, Jul 06, 1999 at 02:06:56PM -0700, Perez, Victor wrote:
> Hi there:
> 
> I just don't know what's wrong, I've installed ZodbcDA and connects fine to
> M$Access databases. I can create SQL methods like: "select * from
> (database)" and it shows the whole thing without problems.
> 
> I tried something like the examples on the Z SQL guide trying to make it
> give me the phone:
> 
> =======================
> select * from phonelist
> where <!--#sqltest phone column=name type=string-->
> ======================
> 
> and all what I get is the following error message:
> 
> ======================
> Error, exceptions.KeyError: phone
> 

Simple question: you are putting 'phone' in the Arguments attribute of
the Z SQL Method, right?

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