Joseph A. Knapka writes:
After cut&pasting the code from the "compoundInterest" example in chapter 5 of TZB into my ZMI, they didn't work. The interestDisplay template, confronted with <span tal:replace="years">, threw an exception claiming that "years" was undefined. Changing it to <span tal:replace="request/years"> worked fine. Similarly, all references to request variables in the invocation of the Python script had to be changed from "variable" to "request.variable".
Am I missing something here, or is this the way templates are supposed to work? When "variable" is defined in "request", you need to access it with "request/variable". That's as it should be.
Make a comment in the commentable version of the Zope Book (2_6Edition), such that is gets fixed for the next release. Dieter