diff options
author | R. Tyler Ballance <tyler@slide.com> | 2009-03-24 10:57:41 -0700 |
---|---|---|
committer | R. Tyler Ballance <tyler@slide.com> | 2009-03-24 10:57:41 -0700 |
commit | 2d72b61c956474af0784f53d2b06f0e2c5f0473f (patch) | |
tree | 7a8269e0a3d733c1f8e730e10630f30f0b1bb4b6 /TODO | |
parent | 2410fa3bcc14a28a8f19120e0198a05334b1df6b (diff) | |
download | python-cheetah-2d72b61c956474af0784f53d2b06f0e2c5f0473f.tar.gz |
Prioritize the template itself at the beginning of the searchList.
Patch suggested by Peter Warasin <peter@endian.com> to solve an issue when using
the RecursiveNull class in your searchList.
What this will do for the majority case however is prevent searchlist variables from
colliding with template defined variables or methods. In effect, if your template has:
#def $mymethod()
#return 'foo'
#end def
And you pass the searchList=[{'mymethod' : lambda x: 'bar'}], the template will resolve the "mymethod"
symbol defined in the template itself.
Signed-off-by: R. Tyler Ballance <tyler@slide.com>
Diffstat (limited to 'TODO')
0 files changed, 0 insertions, 0 deletions