[Zope] Database Updating

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


> -----Original Message-----
> From: Michel Pelletier [mailto:michel@digicool.com]
> Sent: Tuesday, July 27, 1999 4:39 PM
> To: 'Donald Holten'; zope@zope.org
> Subject: RE: [Zope] Database Updating
> 
> 
> 
> 
> > -----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)"-->
> 

Ooops.  I mean:

<!--#call "update_AccessCounter(numtemp=numtemp)"-->

However,  if 'numtemp' is in your REQUEST, you can just say:

<!--#call update_AccessCounter-->

and all will work fine.

-Michel

> 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 )
> > 
> 
> _______________________________________________
> 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 )
>