Ciao,<br>non è un problema del mio template/view, nel senso che sembra essere un comportamento già conosciuto.<br><br>Oggi pomeriggio cercherò di patchare così<br><a href="http://dev.plone.org/collective/changeset/67165">http://dev.plone.org/collective/changeset/67165</a><br>
<br>Vito<br><br><div class="gmail_quote">2009/1/21 Yuri <span dir="ltr">&lt;<a href="mailto:yurj@alfa.it">yurj@alfa.it</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Vito Falco ha scritto:<div><div></div><div class="Wj3C7c"><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Ciao ,<br>
ho creato il mio prodottino che funziona alla grande sia sul mio portatile sia sul server. Il problema nasce quando sul server installo CacheFu (aka CacheSetup).<br>
Tutte le viste create (sia standalone) sia per i miei oggetti ritornano questo errore:<br>
<br>
Time &nbsp; 2009/01/21 10:47:58.547 GMT+1<br>
User Name (User Id) admin (admin)<br>
Request URL <a href="http://mysite.edu/site/prueba-estudio/view" target="_blank">http://mysite.edu/site/prueba-estudio/view</a><br>
Exception Type UnicodeDecodeError<br>
Exception Value &#39;ascii&#39; codec can&#39;t decode byte 0xef in position 0: ordinal not in range(128)<br>
<br>
Traceback (innermost last):<br>
<br>
 &nbsp; &nbsp;* Module ZPublisher.Publish, line 119, in publish<br>
 &nbsp; &nbsp;* Module ZPublisher.mapply, line 88, in mapply<br>
 &nbsp; &nbsp;* Module ZPublisher.Publish, line 42, in call_object<br>
 &nbsp; &nbsp;* Module Shared.DC.Scripts.Bindings, line 313, in __call__<br>
 &nbsp; &nbsp;* Module Shared.DC.Scripts.Bindings, line 350, in _bindAndExec<br>
 &nbsp; &nbsp;* Module Products.PageTemplates.PageTemplateFile, line 129, in _exec<br>
 &nbsp; &nbsp;* Module Products.CacheSetup.patch_cmf, line 153, in PT_pt_render<br>
 &nbsp; &nbsp; &nbsp;Warning: Macro expansion failed<br>
 &nbsp; &nbsp; &nbsp;Warning: exceptions.KeyError: &#39;macro&#39;<br>
 &nbsp; &nbsp;* Module StringIO, line 271, in getvalue<br>
<br>
UnicodeDecodeError: &#39;ascii&#39; codec can&#39;t decode byte 0xef in position 0: ordinal not in range(128)<br>
<br>
Ora, ho letto di questi problemi con la versione precedente di CacheFu (<a href="http://dev.plone.org/collective/changeset/63107" target="_blank">http://dev.plone.org/collective/changeset/63107</a>) e relativa soluzione. Io ho pero&#39; sulla mia macchina la ultimissima versione gia&#39; fornita di tale patch.<br>

Suggerimenti?<br>
<br>
La mia configurazione:<br>
- Zope 2.10.6<br>
- Python 2.4.5<br>
- Plone 3.1.7<br>
- ZeoCluster with 2 clients<br>
- CacheFu aka CacheSetup 1.2 (via eggs)<br>
<br>
Per programmare ho sempre usato TextMate con impostazione UTF8 e sempre utilizzato la sintassi (u&#39;...&#39;) per la definizione dei miei oggetti.<br>
<br>
&lt;disperate mode&gt;Consigli?&lt;/disperate mode&gt;<br>
</blockquote>
<br></div></div>
in plone utils c&#39;è un safe_encode, prova a utilizzarlo nel punto in cui stampi il valore. È un template custom? Hai individuato la riga che crea l&#39;errore?<br>
<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Vito<br>
------------------------------------------------------------------------<br>
<br>
_______________________________________________<br>
Plone-IT mailing list<br>
<a href="mailto:Plone-IT@lists.plone.org" target="_blank">Plone-IT@lists.plone.org</a><br>
<a href="http://lists.plone.org/mailman/listinfo/plone-it" target="_blank">http://lists.plone.org/mailman/listinfo/plone-it</a><br>
<a href="http://www.nabble.com/Plone---Italy-f21728.html" target="_blank">http://www.nabble.com/Plone---Italy-f21728.html</a><br>
</blockquote>
<br>
<br>
_______________________________________________<br>
Plone-IT mailing list<br>
<a href="mailto:Plone-IT@lists.plone.org" target="_blank">Plone-IT@lists.plone.org</a><br>
<a href="http://lists.plone.org/mailman/listinfo/plone-it" target="_blank">http://lists.plone.org/mailman/listinfo/plone-it</a><br>
<a href="http://www.nabble.com/Plone---Italy-f21728.html" target="_blank">http://www.nabble.com/Plone---Italy-f21728.html</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>&quot;Design is the method of putting form and content together. Design, just as art, has multiple definitions; there is no single definition. Design can be art. Design can be aesthetics. Design is so simple, that&#39;s why it is so complicated.&quot; by Paul Rand<br>