On Friday 21 March 2008, TrashMan wrote:
> Ciao a tutti.
>
> Ho un comportamento strano e ci sto facendo a cazzotti.
>
>
> Ho fatto un portlet che mi dice sempre il contenuto di una folder
> chiamata docs che deve sempre essere visibile.
>
> Funziona bene sempre ....pero' se vado a creare un nuovo
> contenuto ....crash! l'edit non viene e al portlet viene dato questo
>
> Error exceptions.AttributeError on here/portlet_docs/macros/portlet:
> 'function' object has no attribute 'objectValues'
>
>
> Il portlet portlet_docs ha questo banalissimo codice che genera
> l'errore.
>
>
>       <span  tal:repeat="oggetto  python:here.docs.contentValues()">
>         <a href="" tal:attributes="href string:docs/${oggetto/id}/"
>
>  ><span tal:content="oggetto/Title" /></a><br/>
>
>       </span>

ti consiglio di usare un tal:on-error="nothing" per nascondere un eventuale 
errore e sostituire la chiamata a objectValues con una ricerca sul catalogo 
(simile a quella che trovi in folder_listing).

-- 
Riccardo Lemmi                           Email:   [EMAIL PROTECTED]
Reflab S.r.l. - Plone Design, Development and Consulting
Phone: +39 349 4620820                         http://www.reflab.it

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
Plone-IT mailing list
Plone-IT@lists.plone.org
http://lists.plone.org/mailman/listinfo/plone-it
http://www.nabble.com/Plone---Italy-f21728.html

Rispondere a