On Tuesday 29 January 2008 13:10:36 you wrote:
mi rispondo da solo: :-)

> - uno zsql method 'getBooksToCatalog':
> SELECT
> Pubtitle,
> Pubdescription,
> concat(Pubdescription," ",Pubtitle," ",Author) as SearchableText,
> 'test' as meta_type,
> Number as id
> FROM Books

non sarebbe rilevante, ma cosi' va meglio:
...
'test' as meta_type,
Number as id,
Pubtitle as Title
FROM Books

>
> - uno script python 'catalogBooks':
> for test in container.getBooksToCatalog():
>  container.catalog_object(test,'pub/getBook/'+test.id+'/bookdetails.dtml')
>  print "Book # " + test.id + " " + test.pubtitle
> return printed

dal momento che lavoro in locale (http://localhost:8080/miosito), il path deve 
essere:
container.catalog_object(test,'/miosito/pub/getBook/'+test.id+'/bookdetails.dtml')
vedro' poi come si comportera' sul virtual server.

>
>
>
> 3) eseguendo /portal_catalog/catalogBooks ottengo (in portal_catalog)
>
> catalog (_contenuti in fondo a questo post_):
> publications/getBook/1/bookdetails.dtml (type: test)
> publications/getBook/2/bookdetails.dtml (type: test)

errata corrige: publications -> pub

inoltre in: site setup -> Plone Configuration -> Search Settings ho dovuto 
aggiungere 'Plone Site'. Per ora non conosco gli effetti collaterali, dovro' 
leggere i docs ma adesso tutto funge a meraviglia.

bye!

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

Rispondere a