[plonegov-br] UnicodeEncodeError ao Editar Uma Página de Coleção de Notícias

Marcos Martins marcos.martins em ifms.edu.br
Sexta Dezembro 18 16:02:48 BRST 2015


Boa Tarde,
Quando eu vou editar uma página de coleção de notícias que possui alguma
tag, é mostrada a mensagem de erro abaixo. Por favor, alguém sabe me dizer
como evitar que seja  gerados estes erros, pois eles só começam a aparecer
após uma das atualizações da release

http://pastebin.com/DeW1xnq5

ou aqui:

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 158, 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 c4d44bce762afb656fb5d2d21f9f5d32, line 92, in render
  Module c13151485462b669b3ef5bd2da68ee0c, line 1809, in render_titlelessform
  Module c13151485462b669b3ef5bd2da68ee0c, line 452, in render_fields
  Module c13151485462b669b3ef5bd2da68ee0c, line 127, in render_widget_rendering
  Module c13151485462b669b3ef5bd2da68ee0c, line 1078, in render_field
  Module five.pt.expressions, line 161, in __call__
  Module Products.Five.browser.metaconfigure, line 479, 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 3974983b880a4cdcd856866d88c4ac7e, line 591, in render
  Module 3974983b880a4cdcd856866d88c4ac7e, line 466, in render_widget_wrapper
  Module five.pt.expressions, line 161, in __call__
  Module plone.formwidget.querystring.widget, line 24, in render
  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 191, in render
  Module chameleon.template, line 171, in render
  Module e0962df92382adfccebbbafc9b826516, line 648, in render
  Module encodings.utf_8, line 16, in decode
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe3' in
position 5: ordinal not in range(128)

 - Expression: "widget/@@ploneform-render-widget"
 - Filename:   ... rm-0.7.6-py2.7.egg/plone/app/z3cform/templates/macros.pt
 - Location:   (line 97: col 81)
 - Source:     ... place="structure widget/@@ploneform-render-widget"/>
                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 - Expression: "python:index.decode('utf-8')"
 - Filename:   ... ng-1.1.4-py2.7.egg/plone/formwidget/querystring/input.pt
 - Location:   (line 47: col 106)
 - Source:     ... cords:list'; value python:index.decode('utf-8');
                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 - Arguments:  context: <ImplicitAcquisitionWrapper
ultimas-noticias-da-editoria-entre-nos at 0x7f77c3433eb0>
               widget: <QueryStringWidget query at 0x7f77c0027dd0>
               repeat: {...} (0)
               sortable_indexes: {...} (17)
               views: <ViewMapper - at 0x7f77c0437b10>
               addindexselected: 0
               modules: <TraversableModuleImporter - at 0x7f77d0d8e490>
               args: <tuple - at 0x7f77c1353e10>
               fieldName: form.widgets.query
               nothing: <NoneType - at 0x91a870>
               row: {...} (3)
               index: reunião
               rows: <list - at 0x7f77c07723b0>
               target_language: pt_BR
               default: <object - at 0x7f77d81054d0>
               addoperatorselected: 0
               request: <instance - at 0x7f77c1b4af80>
               wrapped_repeat: {...} (2)
               indexes: {...} (28)
               loop: {...} (2)
               template: <ViewPageTemplateFile - at 0x7f77c146ba50>
               translate: <function translate at 0x7f77c0173a28>
               config: {...} (3)
               options: {...} (0)
               view: <QueryStringWidget query at 0x7f77c0027dd0>


Att,

-- 

*Marcos Paulo de Jesus Martins*

*Analista de Tecnologia da Informação IFMS <http://www.ifms.edu.br/> -
Instituto Federal de Mato Grosso do Sul - Reitoria*

*Campo Grande (MS)*
<https://www.avast.com/?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
Este
e-mail foi enviado por um computador sem vírus e protegido pelo Avast.
www.avast.com
<https://www.avast.com/?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
<#DDB4FAA8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
-------------- Próxima Parte ----------
Um anexo em HTML foi limpo...
URL: <http://listas.interlegis.gov.br/pipermail/plonegov-br/attachments/20151218/82391334/attachment.html>


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