[Zope] __getitem__ and returning a PageTemplateFile instance

Chris Withers chris at simplistix.co.uk
Fri Oct 21 11:21:40 EDT 2005


Anders Bruun Olsen wrote:
> 
> Ahh.. that makes sense I guess. It just seems counterintuitive that you
> can return a string in a normal function, but not in __getitem__.

I have a feeling you're after traverse_subpath, which is available in 
both Python Scripts and Page Templates...

cheers,

Chris

-- 
Simplistix - Content Management, Zope & Python Consulting
            - http://www.simplistix.co.uk


More information about the Zope mailing list