[ZDP] BackTalk to Document The Zope Book/Using Basic Zope Objects
nobody@nowhere.com
nobody@nowhere.com
Mon, 08 Apr 2002 16:33:28 -0400
A comment to the paragraph below was recently added via http://www.zope.org/Documentation/ZopeBook/BasicObject.stx#2-54
---------------
This will return the balance or debt compounded over the course of
"years". Next, create a *interestRateDisplay* page template that
calls *calculateCompoundingInterest* and returns the result::
<html>
<body>
<p>Your total balance (or debt) including compounded interest over
<span tal:content="years">2</span> years is:</p>
<p><b>$<span tal:content="python: here.calculateCompoundingInterest(principal,
interest_rate,
periods,
years)" >1.00</span></b></p>
</body>
</html>
% Anonymous User - Apr. 6, 2002 10:39 am:
Zope Error
Zope has encountered an error while publishing this resource.
Error Type: Undefined
Error Value: years not found in 'years', at line 5, column 3
....
....
# I got this error message, please help me to correct this error.
% Anonymous User - Apr. 8, 2002 4:33 pm:
i refer to the ch.9.
and change the python expression to
python: here.calculateCompoundingInterest(request.form['principal'],...
that should be able to work.
i'm a rookie.