sqlalchemy / sqlalchemy/mako

TGPlugin.render method doesn't support unicode template names

Open
#223 1 comment 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.