Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Templates broken with pa.jquery #34

Open
shadowmint opened this issue Dec 17, 2013 · 0 comments
Open

Templates broken with pa.jquery #34

shadowmint opened this issue Dec 17, 2013 · 0 comments

Comments

@shadowmint
Copy link

Using pa.jquery on an otherwise working site results in:

/eggs/Chameleon-2.14-py2.7.egg/chameleon/py26.py", line 13, in lookup_attr
return get(key)
TypeError: list indices must be integers, not str

  • Expression: "breadcrumb.render(request)"
  • Filename: ... uery-0.9.5-py2.7.egg/fa/jquery/templates/admin/master.pt
  • Location: (line 37: col 77)
  • Source: ... :content="structure breadcrumb.render(request)" />
    ^^^^^^^^^^^^^^^^^^^^^^^^^^
  • Arguments: fs: <FieldSet - at 0x109ac2e90>
    model_plural: Milestone
    actions: {...} (1)
    model_label: Milestone
    breadcrumb: <list - at 0x10aad34d0>
    repeat: {...} (0)
    renderer_name: pyramid_formalchemy:templates/admin/edit.pt
    F_: <function translate at 0x10983eb18>
    id: 1
    req: <Request - at 0x109abc090>
    renderer_info: <RendererHelper - at 0x109a249d0>
    request: <Request - at 0x109abc090>
    context: <MilestoneCustomModel_admin_edit_GET 1 at 0x109abcb10>
    model_class: <I18NModel Milestone at 0x109ac25d0>
    main: <PyramidPageTemplateFile - at 0x10aad2490>
    model_name: Milestone
    view: <ModelView - at 0x109ac2c50>

By removing:

config.include('fa.jquery')

The site works fine using the default old skin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant