• Andreas Jung's avatar
    This version of PageTemplateFile seems to work fine although · 67ec9bb7
    Andreas Jung authored
    it requires further testing.
    
    The implementation uses its own Engine and traverse since browser 
    pages configured through ZCML are looked up by a bobo_traverse()
    hack. However the standdard simpleTraverse() method of zope.tales.
    expressions only performs the traversal using __getitem__(). So we
    define our own traverser that also tries a traversal using 
    restrictedTraverse().
    
    The code is still ugly, needs some more cleanup and renaming.
    67ec9bb7
PageTemplateFile.py 7.28 KB