[plonegov-br] Erro collective.signupsheet

Davi Lima davilima6 em gmail.com
Quinta Março 17 12:33:11 BRT 2016


Está acontecendo o famoso erro UnicodeDecode, que impede o uso de acentos,
nesse caso, nas palavras-chave (Ministério dos Esportes). A falha parece
originar no próprio Archetypes (parte do Plone), no que sugiro você abrir
uma issue documentando o problema aqui:

   - https://github.com/plone/Products.CMFPlone/issues/new

Se precisar de um conserto urgente, dê uma olhada nesta solução:

   -
   http://colab.interlegis.leg.br/archives/thread/plonegov-br/unicodeencodeerror-ao-editar-uma-pagina-de-colecao-de-noticias#msg-154268

Contudo se funcionar fique atento aos efeitos colaterais que ela pode
trazer:

   -
   http://plone.293351.n2.nabble.com/I-hope-Plone-4-include-the-quot-sitecustomize-py-quot-td3502396.html

[]s
Davi


2016-03-17 12:03 GMT-03:00 Pedro Muniz <pedrohmuniz em hotmail.com>:

> Prezados (as) Bom dia, estou implementando portal Plone 4.3 ao instalar o
> produto collective.signupsheet, esta ocorrendo o seguinte erro: Se alguém
> ja passou por esse erro poderia me ajudar, desde já agradeço à atenção
>
> 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 Products.CMFPlone.FactoryTool, line 478, in __call__
>   Module ZPublisher.mapply, line 77, in mapply
>   Module ZPublisher.Publish, line 48, in call_object
>   Module Products.CMFFormController.FSControllerPageTemplate, line 91, in __call__
>   Module Products.CMFFormController.BaseControllerPageTemplate, line 31, in _call
>   Module Shared.DC.Scripts.Bindings, line 322, in __call__
>   Module Shared.DC.Scripts.Bindings, line 359, in _bindAndExec
>   Module Products.CMFCore.FSPageTemplate, line 237, in _exec
>   Module Products.CMFCore.FSPageTemplate, line 177, in pt_render
>   Module Products.PageTemplates.PageTemplate, line 79, in pt_render
>   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 188, in render
>   Module chameleon.template, line 170, in render
>   Module 36f110593d2b9297320d10dba9f8a5a0.py, line 1143, in render
>   Module 36f110593d2b9297320d10dba9f8a5a0.py, line 964, in render_master
>   Module 429135c8b96e24f183822e33f3fec1fc.py, line 1392, in render_master
>   Module 429135c8b96e24f183822e33f3fec1fc.py, line 612, in render_content
>   Module 36f110593d2b9297320d10dba9f8a5a0.py, line 952, in __fill_main
>   Module 36f110593d2b9297320d10dba9f8a5a0.py, line 122, in render_main
>   Module c6ebe8d66ab4ea35b28c8de16812f994.py, line 453, in render_body
>   Module e7c890c7f8e4d4c814b1ea1744fc0af8.py, line 1182, in render_edit
>   Module d7aa25dde396322c16851a3036d78bce.py, line 655, in render_edit
>   Module e7c890c7f8e4d4c814b1ea1744fc0af8.py, line 139, in __fill_widget_body
>   Module Products.CMFCore.FSPythonScript, line 127, in __call__
>   Module Shared.DC.Scripts.Bindings, line 322, in __call__
>   Module Shared.DC.Scripts.Bindings, line 359, in _bindAndExec
>   Module Products.PythonScripts.PythonScript, line 344, in _exec
>   Module script, line 21, in collectKeywords
>    - <FSPythonScript at /planejamento/portal_factory/SignupSheet/signupsheet.2016-03-17.8364264484/collectKeywords>
>    - Line 21
>   Module Products.Archetypes.utils, line 400, in sortedByValue
>   Module Products.Archetypes.utils, line 398, in _cmp
> UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 6: ordinal not in range(128)
>
>  - Stream:     Ministério dos Transportes
>                      ^
>  - Expression: "python: context.collectKeywords(fieldName, field.accessor, widget.vocab_source)"
>  - Filename:   ... /Products/Archetypes/skins/archetypes/widgets/keyword.pt
>  - Location:   (line 30: col 39)
>  - Source:     ... python: context.collectKeywords(fieldName, field.accessor, widget.vocab_source) ...
>                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>  - Arguments:  repeat: {...} (0)
>                template: <ImplicitAcquisitionWrapper base_edit at 0x7f16112fe500>
>                modules: <instance - at 0x7f162b6fb638>
>                here: <ImplicitAcquisitionWrapper signupsheet.2016-03-17.8364264484 at 0x7f161130baa0>
>                user: <ImplicitAcquisitionWrapper - at 0x7f16113125a0>
>                nothing: <NoneType - at 0x7b4050>
>                container: <ImplicitAcquisitionWrapper signupsheet.2016-03-17.8364264484 at 0x7f161130baa0>
>                default: <object - at 0x7f163e0c5bc0>
>                request: <instance - at 0x7f1611870cb0>
>                wrapped_repeat: <SafeMapping - at 0x7f16117cef70>
>                traverse_subpath: <list - at 0x7f1611301b90>
>                loop: {...} (9)
>                context: <ImplicitAcquisitionWrapper signupsheet.2016-03-17.8364264484 at 0x7f161130baa0>
>                translate: <function translate at 0x7f161170b7d0>
>                root: <ImplicitAcquisitionWrapper Zope at 0x7f1611ab56e0>
>                options: {...} (2)
>                target_language: <NoneType - at 0x7b4050>
>
>
> --
> Comunidade Plone no Governo
> Site: http://www.softwarelivre.gov.br/plone
> Wiki: http://colab.interlegis.leg.br/wiki/PloneGovBr
> Histórico:
> http://colab.interlegis.leg.br/search/?type=thread&order=latest&list=plonegov-br
> Lista: https://listas.interlegis.gov.br/mailman/listinfo/plonegov-br
>
-------------- Próxima Parte ----------
Um anexo em HTML foi limpo...
URL: <http://listas.interlegis.gov.br/pipermail/plonegov-br/attachments/20160317/c29226b8/attachment.html>


Mais detalhes sobre a lista de discussão PloneGov-BR