[Zope] Database Updating

Michel Pelletier michel@digicool.com
Tue, 27 Jul 1999 16:38:48 -0400


> -----Original Message-----
> From: Donald Holten [mailto:donner@biophysics.lanl.gov]
> Sent: Tuesday, July 27, 1999 3:31 PM
> To: zope@zope.org
> Subject: [Zope] Database Updating
> 
> 
> 	I'm trying to call an SQL method and pass a variable as 
> an argument to 
> it, to store the variable's value to the database.   Here's 
> the line I'm using:
> 	<!--#call "update_AccessCounter(numtemp)"-->
> 	The variable numtemp is who's value I want to store in 
> the database (by 
> the update_AccessCounter).  This gives me an error about bad 
> name or something.  
> I'm having some system problems right now and can't copy the 
> error.  Thanks for 
> the help!

Try: <!--#call "update_AccessCounter(REQUEST, numtemp=numtemp)"-->

Note that your ZSQL method must be anticipating the 'numtemp' argument.

-Michel

> 	Donner
> 
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://www.zope.org/mailman/listinfo/zope
> 
> (To receive general Zope announcements, see:
> http://www.zope.org/mailman/listinfo/zope-announce
> 
> For developer-specific issues, zope-dev@zope.org -
> http://www.zope.org/mailman/listinfo/zope-dev )
>