from Globals import InitializeClass from Products.Five import BrowserView as BaseView class QTAuthorView(BaseView): """ qtauthor view """ def __init__(self, context, request): self.context = context self.request = request def test(self, cond, tru, fal=None): if cond: return tru return fal InitializeClass(QTAuthorView)