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

Closed
wants to merge 3 commits into
from

2 participants

@aodag

File "/home/aodag/.envs/pyramid/local/lib/python2.7/site-packages/Mako-0.7.0-py2.7.egg/mako/runtime.py", 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.

@aodag

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

@aodag

related issues #606, #512

@mcdonc
Pylons Project member

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

@aodag

I gonna add tests at this week end.

@aodag

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
@mcdonc
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