[Plone-IT] portlet tal

Fabrizio Rota fabrizio.rota a gmail.com
Ven 19 Lug 2013 12:09:51 UTC


Uso un portlet "tal" per mostrare il "libro della settimana" che gli utenti
caricano compilando un form ploneformgen.

Il libro della settimana viene mappato verso una normalissima news.

Se il titolo contiene accentate, il portlet dà errore unidecoderror.

il codice del portlet tal è questo:



<metal:block define-macro="portlet">
     <div  id="portlet_libri"
             tal:define="presults
python:context.portal_catalog(portal_type='News Item', path='/
www.isisromero.gov.it/news/libri', sort_on='effective',
sort_order='reverse')"
             tal:condition="presults">


               <tal:block define="pobj python:presults[0].getObject()">


<h2> Libro della settimana</h2>
<h3 tal:content=pobj/Title>IL TITOLO DEL LIBRO </h3>


.........

Il sito del portlet è www.isisromero.gov.it

Come posso far digerire le accenteate al portlet? Il "libro della
settimana" come oggetto news viene creato regolarmente, il problema è la
visualizzazione tramite portlet!

-- 
Fabrizio
--------------------
Non inviato da IPhone

"Life is what happens to you while you're busy making other plans" - J.
Lennon

“If you think education is expensive, try ignorance” - D. Bok

Life is like a game of cards. The hand you are dealt is determinism; the
way you play it is free will - Jawaharlal Nehru
-------------- parte successiva --------------
Un allegato HTML è stato rimosso...
URL: <http://lists.plone.org/pipermail/plone-plone-it/attachments/20130719/4dae1887/attachment.html>


Maggiori informazioni sulla lista Plone-IT