hi all,
I'm trying to write a simple app which takes a name, bank balance,
interest rate and returns the balance once 1 years interest has been
added. I'm getting the error that float object is not callable. 
i can't figure out where i'm going wrong :S

my code is below(getDetails, showDetails,doStuff.py), thanks for any


<form action="showDetails" method=post>
 <input name="name:str"> NAME<br>
 <input name="balance:float"> BALANCE<br>
 <input name="interestRate:float"> INTEREST RATE<br>
 <input type="submit" value="calculate">


<span tal:define="name request/name;
                  balance request/balance;
                  rate request/interestRate">
 <span tal:content="python: here.doStuff(name,balance,rate)"></span>

years = 1
newBal = balance( balance*(rate*years))

returnList = [name,newBal]

return returnList

Zope maillist  -  Zope@zope.org
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-dev )

Reply via email to