Hi Zopistas, I am a newbie, reading Chapter 3 of the Zope Book, Basic Objects. The following example doesn't seem to work on my Zope system ( I don't understand the error message): ------------------------------------------------------------------------------------------------------------------ template interestRateForm: ------------------------------------------------------------------------------------------------------------------ <html> <body> <form action="interestRateDisplay" method="POST"> <p>Please enter the following information:</p> Your current balance (or debt): <input name="principal:float"><br> Your annual interest rate: <input name="interest_rate:float"><br> Number of periods in a year: <input name="periods:int"><br> Number of years: <input name="years:int"><br> <input type="submit" value=" Calculate "><br> </form> </body> </html> ------------------------------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------------------------------ template interestRateDisplay: ------------------------------------------------------------------------------------------------------------------ <<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.calculateCompoundInterest(principal, interest_rate, periods, years)"
1.00</span></b></p>
</body> </html> ------------------------------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------------------------------ PythonScript calculateCompoundInterest: ------------------------------------------------------------------------------------------------------------------ """ Calculate compounding interest. """ i = interest_rate / periods n = periods * years return ((1 + i) ** n) * principal ------------------------------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------------------------------ Error: ------------------------------------------------------------------------------------------------------------------ Traceback (innermost last): File /usr/local/zope/Zope-2.5.1-src/lib/python/ZPublisher/Publish.py, line 150, in publish_module File /usr/local/zope/Zope-2.5.1-src/lib/python/ZPublisher/Publish.py, line 114, in publish File /usr/local/zope/Zope-2.5.1-src/lib/python/Zope/__init__.py, line 159, in zpublisher_exception_hook (Object: failed_example_01) File /usr/local/zope/Zope-2.5.1-src/lib/python/ZPublisher/Publish.py, line 89, in publish File /usr/local/zope/Zope-2.5.1-src/lib/python/ZPublisher/BaseRequest.py, line 308, in traverse File /usr/local/zope/Zope-2.5.1-src/lib/python/ZPublisher/HTTPResponse.py, line 502, in debugError NotFound: (see above) ------------------------------------------------------------------------------------------------------------------