adjusted uri used by inheriting templates, caused lookup error. #607

wants to merge 3 commits into

2 participants


File "/home/aodag/.envs/pyramid/local/lib/python2.7/site-packages/Mako-0.7.0-py2.7.egg/mako/", line 732, in _lookup_template
raise exceptions.TemplateLookupException(str(e))
TemplateLookupException: Cant locate template for uri u'demo$templates/layout.mak'

Template Uri shourd be original uri, when loading that.


I found that bug in pyramid 1.3.2.
On pyramid 1.3, template inheritance works fine.


related issues #606, #512

Pylons Project member

Is there any way to provide a test which fails without the fix?


I gonna add tests at this week end.


I tested on windows, and fix that.

tested and passed

  • Ubuntu 12.04 64bit, python2.7.3
  • Ubuntu 12.04 64bit, python3.2.3
  • Windows7 64bit, python 2.7.2 64bit
Pylons Project member

This is fixed in master.

@mcdonc mcdonc closed this Sep 15, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment