I am struggler in learning zope3.
Please forgive me if i am wrong.
How about using an intermediate view component?
in template1.pt
div tal:content= view/vgetTotalDistance /
In zcml
browser:page
class=.someModule.RoughView
template = template1.pt
.
/
where view class is :
from adapters
On Thursday 10 November 2005 19:55, John Smith wrote:
I then created a nice page template which contains
this snippet:
div tal:content=python:context.getTotalDistance()
/
where context is the Car object.
This is wrong, because Car does not have a function called getTotalDistance.
In the