[Zope] How do you increment a variable?

Donald Holten donner@biophysics.lanl.gov
Thu, 29 Jul 1999 08:29:05 -0600 (MDT)


	Here's what Michel suggested for me to try:
	<dtml-call "manage_changeProperty(prop = prop + 1)">
	
	Just make sure counter is a property.
	Donner
	
> 
> I am having a *bad* day, I don't seem to be able to get *any* of my 
> Zope stuff to work today :(
> 
> I can't get this to work.
> <dtml-let counter="1">
> Counter:<dtml-var counter>,
> <dtml-var counter="counter+1">  (Line A)
> <dtml-var counter>
> </dtml-let>
> 
> I've tried the following variants on Line A.
> 1) <dtml-var counter="counter+1">
> gives: Invalid attribute name, "counter", for tag <dtml-var 
> counter="counter+1">
> 
> 2) <dtml-var "counter=counter+1">
> gives: Invalid Syntax <dtml-var "counter=counter+1">,
> 
> 3) <dtml-call "counter=counter+1">
> gives: Python syntax error <dtml-call "counter=counter+1">
> 
> I think all my Zope knowledge has gone out the window. It's Zope 
> 2.0b1 on Solaris 5.6
> 
> Tone (miserable)
> ------
> Dr Tony McDonald,  FMCC, Networked Learning Environments Project 
> http://nle.ncl.ac.uk/
> The Medical School, Newcastle University Tel: +44 191 222 5888
> Fingerprint: 3450 876D FA41 B926 D3DD  F8C3 F2D0 C3B9 8B38 18A2
> 
> _______________________________________________
> 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 )
>