[Plone-UI] Re: Searching for non-ascii character in kupu Insert Link dialog causes Error 500

Alexander Limi limi at plone.org
Fri Nov 30 18:26:56 UTC 2007


Please file a ticket in the Visual Editor category at  
http://dev.plone.org/plone

Thanks!

On Thu, 29 Nov 2007 13:14:49 -0800, mikeshantz  
<mike at peaceworks.ca> wrote:

> Hello,
>
> When using the kupu editor to insert an internal link, I sometimes need  
> to
> search for titles with accented characters in them.
>
> When searching for something like 'École' from the search box that shows  
> up
> in the top right of the "Insert Link" dialog, I get an alert that states
> "Error 500 loading http://[plonesite]/kupusearch.xml". The traceback I  
> get
> is at the end of this message.
>
> I am using plone 3.0. Am I doing something incorrect, or is this a bug?
>
> 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 Shared.DC.Scripts.Bindings, line 313, in __call__
>   Module Shared.DC.Scripts.Bindings, line 350, in _bindAndExec
>   Module Products.CMFCore.FSPageTemplate, line 216, in _exec
>   Module Products.CMFCore.FSPageTemplate, line 155, in pt_render
>   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 623, in do_insertText_tal
>   Module Products.PageTemplates.Expressions, line 224, in evaluateText
>   Module zope.tales.tales, line 696, in evaluate
>    - URL:
> file:/opt/Plone-3.0/mikezinstance/Products/kupu/plone/kupu_plone_layer/kupusearch.xml.pt
>    - Line 15, Column 2
>    - Expression: <PythonExpr tpl.replace('$',txt,1)>
>    - Names:
>       {'container': <PloneSite at /Plone>,
>        'context': <PloneSite at /Plone>,
>        'default': ,
>        'here': <PloneSite at /Plone>,
>        'loop': {},
>        'nothing': None,
>        'options': {'args': ()},
>        'repeat': <Products.PageTemplates.Expressions.SafeMapping object  
> at
> 0xb1a2e5ac>,
>        'request': <HTTPRequest, URL=http://[plonesite]/kupusearch.xml>,
>        'root': <Application at >,
>        'template': <FSPageTemplate at /Plone/kupusearch.xml>,
>        'traverse_subpath': [],
>        'user': <PropertiedUser 'admin'>}
>   Module Products.PageTemplates.ZRPythonExpr, line 49, in __call__
>    - __traceback_info__: tpl.replace('$',txt,1)
>   Module PythonExpr, line 1, in <expression>
> UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 0:
> ordinal not in range(128)



-- 
Alexander Limi · http://limi.net





More information about the UI mailing list