[Zope-CMF] Re: Five views / redirects
Victor Safronovich
vsafronovich at naumen.ru
Tue Oct 18 06:36:05 EDT 2005
Hello Chris Withers,
Tuesday, October 18, 2005, 4:24:29 PM, you wrote:
CW> yuppie wrote:
>> def __call__(self):
>> if self.isTuesday():
>> return ZopeTwoPageTemplateFile('tuesday.pt').__of__(self)()
>> return self.index()
>>
CW> Surely the following is going to be better?
CW> tuesday_pt = ZopeTwoPageTemplateFile('tuesday.pt')
CW> def __call__(self):
CW> if self.isTuesday():
CW> return self.tuesday_pt.__of__(self)()
IMO __of__(self) is not needing now.
--
Best regards,
Victor Safronovich
NauMen.NauDoc.SoftwareDeveloper http://www.naumen.ru
More information about the Zope-CMF
mailing list