wiki:TestWithBrowserView

Using python:test with BrowserView derived page templates

Using the "modern" Zope views you can no longer run python:test(exp, a, b) to do conditional substitutions. ie when:

class StudyView(BrowserView):
    __call__ = ViewPageTemplateFile('study.pt')

you need to do:

python: expr and A or B;

Apparently the old test method was internal plone magic :)

Thanks MacYET on #plone.