Hola, risolto. Per i posteri: setRelativePath() non si puó usare "direttamente" sull'oggetto cercatore, ma bensi una volta aggiunto l'addCriterion con
position_crit = oggetto.addCriterion('path', 'ATRelativePathCriterion') bisogna settargli in questo modo il posizionamento > position_crit.crit__path_ATRelativePathCriterion.setRelativePath('..') > Vito d'España ;-) 2008/10/16 Yuri <[EMAIL PROTECTED]> > Yuri ha scritto: > >> Vito Falco ha scritto: >> >>> Hola, >>> altra delucidazione. Sempre nel mio py di installazione sto cercando di >>> far creare un cercatore. Tutto ok tranne quando ho tentato di agrgegargli un >>> nuovo criterio di tipo "position" e quindi "posizione relativa" con ".." >>> perchè voglio che cataloghi solo i contenuti contenuti nelal cartelal dove >>> si trova. >>> >>> .... >>> .... >>> position_crit = topic.addCriterion('path', >>> 'ATRelativePathCriterion') >>> position_crit.setValue('..') >>> >> >> è un path, prova a vedere cosa ti torna la get value di un criterio già >> fatto, oppure il codice dei criteri... >> >> cercando in giro si usa: position_crit.setRelativePath('..') >> > > > http://api.plone.org/Plone/2.5.3/private/frames/ATContentTypes/private/ATContentTypes.criteria.relativepath.ATRelativePathCriterion-class.html > > > > > _______________________________________________ > 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 > -- "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's why it is so complicated." by Paul Rand
_______________________________________________ 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