TGPlugin.render method doesn't support unicode template names
Open
Nobody has claimed this yet.
bug
lookup
low priority
- Dominant language
- Python
- Stars
- 459
- Forks
- 90
- PR merge metrics
- No merged PRs in 30d
Description
Migrated issue, originally created by Anonymous
Traceback (most recent call last):
File "/Users/vm/ws/mako/test/test_tgplugin.py", line 48, in test_render
assert result_lines(tl.render({}, template=u'/index.html')) == [
File "/Users/vm/ws/mako/mako/ext/turbogears.py", line 57, in render
return template.render(**info)
AttributeError: 'unicode' object has no attribute 'render'
Pull request: https://github.com/zzzeek/mako/pull/5
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with test/test_tgplugin.py::test_render and the render entry point in mako/ext/turbogears.py around line 57. Reproduce the case using the Unicode template name, then run the focused test; done means TGPlugin.render handles that input without the reported AttributeError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- web-dev
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 25/100