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

Erro ao tentar adicionar uma página de destaque #20

Open
makelli opened this issue Jan 3, 2018 · 12 comments
Open

Erro ao tentar adicionar uma página de destaque #20

makelli opened this issue Jan 3, 2018 · 12 comments
Labels

Comments

@makelli
Copy link

makelli commented Jan 3, 2018

Considerando esta configuração:
(Página Destaque 1.2
Portal Padrão 1.3
Plone 4.3.9 (4313)
CMF 2.2.9
Zope 2.13.24
Python 2.7.12 (default, Nov 20 2017, 18:23:56) [GCC 5.4.0 20160609]
PIL 2.7.0 (Pillow)
)

Ao tentar adicionar uma página de destaque occorre

Traceback (innermost last):
Module ZPublisher.Publish, line 138, in publish
Module ZPublisher.mapply, line 77, in mapply
Module ZPublisher.Publish, line 48, in call_object
Module plone.z3cform.layout, line 66, in call
Module plone.z3cform.layout, line 60, in update
Module z3c.form.form, line 281, in render
Module z3c.form.form, line 162, in render
Module zope.browserpage.viewpagetemplatefile, line 51, in call
Module zope.pagetemplate.pagetemplate, line 132, in pt_render
Module five.pt.engine, line 93, in call
Module z3c.pt.pagetemplate, line 163, in render
Module chameleon.zpt.template, line 258, in render
Module chameleon.template, line 171, in render
Module 1e98c52340244c08d330fae256bc39f9, line 92, in render
Module 890660fa19012266ccc0afa668bbaa22, line 1801, in render_titlelessform
Module 890660fa19012266ccc0afa668bbaa22, line 452, in render_fields
Module 890660fa19012266ccc0afa668bbaa22, line 127, in render_widget_rendering
Module 890660fa19012266ccc0afa668bbaa22, line 1070, in render_field
Module five.pt.expressions, line 161, in call
Module Products.Five.browser.metaconfigure, line 485, in call
Module zope.browserpage.viewpagetemplatefile, line 83, in call
Module zope.browserpage.viewpagetemplatefile, line 51, in call
Module zope.pagetemplate.pagetemplate, line 132, in pt_render
Module five.pt.engine, line 93, in call
Module z3c.pt.pagetemplate, line 163, in render
Module chameleon.zpt.template, line 258, in render
Module chameleon.template, line 171, in render
Module 20f1aa303b54507804a34c9634e33487, line 591, in render
Module 20f1aa303b54507804a34c9634e33487, line 466, in render_widget_wrapper
Module five.pt.expressions, line 161, in call
Module z3c.form.widget, line 154, in render
Module zope.browserpage.viewpagetemplatefile, line 51, in call
Module zope.pagetemplate.pagetemplate, line 132, in pt_render
Module five.pt.engine, line 93, in call
Module z3c.pt.pagetemplate, line 163, in render
Module chameleon.zpt.template, line 258, in render
Module chameleon.template, line 191, in render
Module chameleon.template, line 171, in render
Module 0a1f1a54ad1941e072ee4aaf1d07748b, line 982, in render
Module 0a1f1a54ad1941e072ee4aaf1d07748b, line 140, in render_widget_row
IndexError: list index out of range

  • Expression: "widget/@@ploneform-render-widget"
  • Filename: ... rm-0.7.7-py2.7.egg/plone/app/z3cform/templates/macros.pt
  • Location: (line 97: col 81)
  • Source: ... place="structure widget/@@ploneform-render-widget"/>
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  • Expression: "python:view.key_widgets[repeat['widget'].index()]"
  • Filename: ... 7.7-py2.7.egg/plone/app/z3cform/templates/multi_input.pt
  • Location: (line 7: col 33)
  • Source: ... y_widget python:view.key_widgets[repeat['widget'].index()];
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  • Arguments: widget: <DataGridFieldObject None at 0x7f7564691890>
    repeat: {...} (0)
    context: <ImplicitAcquisitionWrapper ifce at 0x7f75646d9320>
    views: <ViewMapper - at 0x7f7563cf9910>
    modules: <TraversableModuleImporter - at 0x7f758765cf10>
    args: <tuple - at 0x7f758ead1050>
    nothing: <NoneType - at 0x8fd4d0>
    target_language: pt_BR
    default: <object - at 0x7f758e9f2520>
    request: <instance - at 0x7f7565db7ab8>
    wrapped_repeat: {...} (1)
    loop: {...} (1)
    template: <ViewPageTemplateFile - at 0x7f7576e09d50>
    translate: <function translate at 0x7f7563d6e230>
    options: {...} (0)
    view: <DataGridField IPaginaDestaque.links at 0x7f7563e6f550>
@hvelarde
Copy link
Member

hvelarde commented Jan 3, 2018

pode conferir por favor se esse erro ainda acontece no IDG 1.5.1?

@makelli
Copy link
Author

makelli commented Jan 4, 2018

Só ocorre em um site específico da IDG
O que tenho a mais da instalaçao padrão:

plone.app.ldap
collective.cover
brasil.gov.portlets
brasil.gov.paginadestaque
brasil.gov.facetada
collective.jsonify
collective.carousel
Products.PloneSurvey
eea.facetednavigation

@hvelarde
Copy link
Member

hvelarde commented Jan 4, 2018

confira por favor as versões de todos os pacotes listados no traceback.

@makelli
Copy link
Author

makelli commented Jan 4, 2018

Zope2-2.13.24
plone.z3cform-0.8.1
z3c.form-3.2.9
zope.browserpage-3.12.2
zope.pagetemplate-3.6.3
five.pt-2.2.3
z3c.pt-3.0.0a1
Chameleon-2.22
zope.browserpage-3.12.2

@hvelarde
Copy link
Member

hvelarde commented Jan 4, 2018

como podes ver esse pacotes não estão nas últimas versões; sugiro atualizar o portal primeiro e logo testar novamente.

a guia de atualização está aqui: http://identidade-digital-de-governo-plone.readthedocs.io/en/latest/atualizacao/

@idgserpro
Copy link
Member

idgserpro commented Oct 22, 2018

Tive a mesma mensagem de erro após atualizar um site 1.0.5 para 1.5.2.

Esse é um problema da atualização do collective.z3cform.datagridfield 1.2 -> 1.3

Mas o collective.z3cform.datagridfield 1.3 não é compatível com Plone 4. Ver:

collective/collective.z3cform.datagridfield#77

@hvelarde
Copy link
Member

o collective.z3cform.datagridfield é uma dependência do IDG?

@idgserpro
Copy link
Member

Ele é uma dependência do brasil.gov.paginadestaque

'collective.z3cform.datagridfield >=1.3', # avoid dependency on five.grok

@idgserpro
Copy link
Member

@hvelarde você pinou collective.z3cform.datagridfield >=1.3 mas parece que a versão 1.3 não é compatível com Plone 4. Ver:

collective/collective.z3cform.datagridfield#77

@hvelarde hvelarde added the bug label Oct 22, 2018
@hvelarde
Copy link
Member

entendi, alguém vai ter que tomar conta; nós não temos recursos para isso.

@idgserpro
Copy link
Member

@hvelarde o brasil.gov.paginadestaque foi testado com o IDG 2.0? Alguma possibilidade de algum cliente ter instado o brasil.gov.paginadestaque no IDG 2.0?

@hvelarde
Copy link
Member

eu acho que essa funcionalidade não deveria ser inclusa no IDG 2.0; @agnogueira podes ajudar aqui?

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

No branches or pull requests

3 participants