yuppie wrote:
    def __call__(self):
        if self.isTuesday():
            return ZopeTwoPageTemplateFile('tuesday.pt').__of__(self)()
        return self.index()


Surely the following is going to be better?

     tuesday_pt = ZopeTwoPageTemplateFile('tuesday.pt')

     def __call__(self):
         if self.isTuesday():
             return self.tuesday_pt.__of__(self)()
         return self.index()

cheers,

Chris

--
Simplistix - Content Management, Zope & Python Consulting
           - http://www.simplistix.co.uk
_______________________________________________
Zope-CMF maillist  -  Zope-CMF@lists.zope.org
http://mail.zope.org/mailman/listinfo/zope-cmf

See http://collector.zope.org/CMF for bug reports and feature requests

Reply via email to