Zope 2.10.5-final
Plone-3.1
python 2.4.4

Olá,

Instalei o produto Plone PoPoll, versão 2.6.1, para trabalhar com
enquetes. Meu objetivo é colocar a enquete dentro de um portlet para
isso fui em @@manage-portlets e em seguida  fui até o menu pull-down
Add portlet e escolhi o item chamado "Poll" e após isso dá um
erro:
  "UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position
9: ordinal not in range(128) "
O traceback completo está logo abaixo:


início traceback
------
Traceback (innermost last):
   Module ZPublisher.Publish, line 119, in publish
   Module ZPublisher.mapply, line 88, in mapply
   Module ZPublisher.Publish, line 42, in call_object
   Module plone.app.portlets.browser.formhelper, line 53, in __call__
   Module zope.formlib.form, line 770, in __call__
   Module zope.formlib.form, line 885, in render
   Module zope.formlib.form, line 764, in render
   Module plone.app.form._named, line 26, in __call__
   Module Shared.DC.Scripts.Bindings, line 313, in __call__
   Module Shared.DC.Scripts.Bindings, line 350, in _bindAndExec
   Module Products.PageTemplates.PageTemplateFile, line 129, in _exec
   Module Products.PageTemplates.PageTemplate, line 89, in pt_render
   Module zope.pagetemplate.pagetemplate, line 117, in pt_render
   Module zope.tal.talinterpreter, line 271, in __call__
   Module zope.tal.talinterpreter, line 346, in interpret
   Module zope.tal.talinterpreter, line 891, in do_useMacro
   Module zope.tal.talinterpreter, line 346, in interpret
   Module zope.tal.talinterpreter, line 536, in do_optTag_tal
   Module zope.tal.talinterpreter, line 521, in do_optTag
   Module zope.tal.talinterpreter, line 516, in no_tag
   Module zope.tal.talinterpreter, line 346, in interpret
   Module zope.tal.talinterpreter, line 957, in do_defineSlot
   Module zope.tal.talinterpreter, line 346, in interpret
   Module zope.tal.talinterpreter, line 536, in do_optTag_tal
   Module zope.tal.talinterpreter, line 521, in do_optTag
   Module zope.tal.talinterpreter, line 516, in no_tag
   Module zope.tal.talinterpreter, line 346, in interpret
   Module zope.tal.talinterpreter, line 861, in do_defineMacro
   Module zope.tal.talinterpreter, line 346, in interpret
   Module zope.tal.talinterpreter, line 957, in do_defineSlot
   Module zope.tal.talinterpreter, line 346, in interpret
   Module zope.tal.talinterpreter, line 536, in do_optTag_tal
   Module zope.tal.talinterpreter, line 521, in do_optTag
   Module zope.tal.talinterpreter, line 516, in no_tag
   Module zope.tal.talinterpreter, line 346, in interpret
   Module zope.tal.talinterpreter, line 534, in do_optTag_tal
   Module zope.tal.talinterpreter, line 516, in no_tag
   Module zope.tal.talinterpreter, line 346, in interpret
   Module zope.tal.talinterpreter, line 949, in do_defineSlot
   Module zope.tal.talinterpreter, line 346, in interpret
   Module zope.tal.talinterpreter, line 891, in do_useMacro
   Module zope.tal.talinterpreter, line 346, in interpret
   Module zope.tal.talinterpreter, line 861, in do_defineMacro
   Module zope.tal.talinterpreter, line 346, in interpret
   Module zope.tal.talinterpreter, line 957, in do_defineSlot
   Module zope.tal.talinterpreter, line 346, in interpret
   Module zope.tal.talinterpreter, line 536, in do_optTag_tal
   Module zope.tal.talinterpreter, line 525, in do_optTag
   Module zope.tal.talinterpreter, line 346, in interpret
   Module zope.tal.talinterpreter, line 824, in do_loop_tal
   Module zope.tal.talinterpreter, line 346, in interpret
   Module zope.tal.talinterpreter, line 536, in do_optTag_tal
   Module zope.tal.talinterpreter, line 521, in do_optTag
   Module zope.tal.talinterpreter, line 516, in no_tag
   Module zope.tal.talinterpreter, line 346, in interpret
   Module zope.tal.talinterpreter, line 745, in do_insertStructure_tal
   Module Products.PageTemplates.Expressions, line 221, in
evaluateStructure
   Module zope.tales.tales, line 696, in evaluate
    - URL: index
    - Line 109, Column 10
    - Expression: <PathExpr standard:'widget'>
    - Names:
       {'container': <+ at
/Informatica/++contextportlets++plone.leftcolumn/+>,
        'context': <+ at
/Informatica/++contextportlets++plone.leftcolumn/+>,
        'default': <object object at 0xb8085528>,
        'here': <+ at
/Informatica/++contextportlets++plone.leftcolumn/+>,
        'loop': {'widget':
<Products.PageTemplates.Expressions.PathIterator object at 0xffec44c>},
        'nothing': None,
        'options': {'args': ()},
        'repeat': <Products.PageTemplates.Expressions.SafeMapping object
at 0x10059d2c>,
        'request': <HTTPRequest,
URL=http://200.181.125.94:8080/Informatica/++contextportlets++plone.left\
column/+/portlets.Popoll>,
        'root': <Application at >,
        'template': <ImplicitAcquirerWrapper object at 0x1005952c>,
        'traverse_subpath': [],
        'user': <PropertiedUser 'admin'>,
        'view': <Products.Five.metaclass.AddForm object at 0xffdb14c>,
        'views': <zope.app.pagetemplate.viewpagetemplatefile.ViewMapper
object at 0x100591cc>}
   Module zope.tales.expressions, line 217, in __call__
   Module Products.PageTemplates.Expressions, line 161, in _eval
   Module Products.PageTemplates.Expressions, line 123, in render
   Module zope.app.form.browser.itemswidgets, line 332, in __call__
   Module zope.app.form.browser.itemswidgets, line 419, in renderValue
   Module zope.app.form.browser.itemswidgets, line 429, in renderItems
   Module zope.app.form.browser.itemswidgets, line 389, in
renderItemsWithValues
   Module zope.app.form.browser.itemswidgets, line 401, in renderItem
   Module zope.app.form.browser.widget, line 535, in renderElement
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 9:
ordinal not in range(128)

------
fim traceback

Se alguém tiver alguma idéia para resolver este erro ou mesmo
propor uma outra solução que atenda o propósito (colocar a enquete
dentro do portlet) ficarei imensamente agradecido.


Valew pessoal




Responder a