[Plone-IT] Plone & mechanize (REPOST)

luigi scarso luigi.scarso a gmail.com
Ven 23 Gen 2009 15:15:56 UTC


On Fri, Jan 23, 2009 at 4:04 PM, Fabrizio Reale <fabrizio.reale a redomino.com
> wrote:

> Ciao,
>
> > folder = appr.Plone.Members.testuser.invokeFactory("Folder",
> id="sample02",
> > title="sample02")
>
> Un bel reindexObject() non gli farebbe male :)
>
> > pprint( "AFTER" )
> > pprint( appr.Plone.Members.testuser.items() )
> >
> >
> > $>$PLONEROOT/Plone-3.1.7/zeocluster/parts/client2/bin/zopectl run test.py
> >
> > BEFORE'
> > [('sample01', <ATFolder at /Plone/Members/testuser/sample01>)]
> > 'AFTER'
> > [('sample01', <ATFolder at /Plone/Members/testuser/sample01>),
> >  ('sample02', <ATFolder at /Plone/Members/testuser/sample02>)]
> >
> > sample01 l'ho creata col browser firefox, ed appare ;
> > sample02 *non* appare via web....
>
> Devi reindicizzarla.
>
si si, come ha detto Yuri...
Qualcosa del tipo

# Update navigation tree and search index data
object.reindexObject()


credo

(
http://plone.org/documentation/tutorial/manipulating-plone-objects-programmatically/creating-items-and-setting-attributes
)

Appena ho un attimo lo faccio

-- 
luigi
-------------- parte successiva --------------
Un allegato HTML  stato rimosso...
URL: <http://lists.plone.org/pipermail/plone-plone-it/attachments/20090123/efd20e42/attachment.html>


Maggiori informazioni sulla lista Plone-IT