in one of our projects we have a browser view that returns a value we use on a Diazo theme.
class IFoo(Interface): def bar(): """Return bar.""" @implementer(IFoo) class Foo(BrowserView) def bar(self): return u'bar' def __cal__(self): return self.bar()
we now need to add another feature and I was wondering if it is possible, instead of creating a new browser view, to be able to traverse to the functions on it to get their results.
I was testing with the
allowed_interface of the view, but when I try to access the function (using
/@@foo/bar) I get a
404 status code as return:
<browser:page name="foo" for="*" permission="zope.Public" class=".Foo" allowed_interface=".IFoo" />
is there a way to achieve this?