Ticket #2292 (closed defect: fixed)

Opened 9 years ago

Last modified 9 years ago

Portlet edition popup not unicode-ready

Reported by: gracinet Owned by: gracinet
Priority: P2 Milestone: CPS 3.5.2
Component: CPSPortlets Version: 3.5.1
Severity: normal Keywords:


I created a portlet and chose "À la une" as title:

    * <FSPageTemplate at /cps/cpsportlet_edit_form used for /cps/.cps_portlets/a-la-une>
    * Module Products.PageTemplates.TALES, line 221, in evaluate
      URL: file:CPSDefault/skins/cps_default/header_lib_header.pt
      Line 19, Column 2
      Expression: standard:'expanded_title|here/expanded_title'

      {'container': <CPSDefaultSite at /cps>,
       'context': <CPSPortlet at /cps/.cps_portlets/a-la-une>,
       'default': <Products.PageTemplates.TALES.Default instance at 0x7feffff273f8>,
       'here': <CPSPortlet at /cps/.cps_portlets/a-la-une>,
       'loop': <Products.PageTemplates.TALES.SafeMapping object at 0x5b8b7e8>,
       'modules': <Products.PageTemplates.ZRPythonExpr._SecureModuleImporter instance at 0x7feffff27830>,
       'nothing': None,
       'options': {'args': ()},
       'repeat': <Products.PageTemplates.TALES.SafeMapping object at 0x5b8b7e8>,
       'request': <HTTPRequest, URL=http://localhost:8080/cps/.cps_portlets/a-la-une/edit_form>,
       'root': <Application at >,
       'template': <FSPageTemplate at /cps/cpsportlet_edit_form used for /cps/.cps_portlets/a-la-une>,
       'traverse_subpath': [],
       'user': <User 'admin'>}
      * Module Products.CMFCore.FSPythonScript, line 164, in _exec
    * Module None, line 13, in expanded_title
      <FSPythonScript at /cps/expanded_title used for /cps/.cps_portlets/a-la-une>
      Line 13

UnicodeDecodeError: <exceptions.UnicodeDecodeError instance at 0x5c35a70>

Change History

comment:1 Changed 9 years ago by gracinet

  • Status changed from new to closed
  • Resolution set to fixed

Fix pushed. Note that the problem lied in creation form, which is in CPSSkins' cpsskins_cmf skin layer. The fix probably breaks on pure CMF, but I highly doubt the unicodified CPSPortlets works either, so it doesn't matter. Anyone using CPSSkins on pure CMF is certainly not on this version of the code.

Note: See TracTickets for help on using tickets.