[Plone-IT] Esperienze con Generic Plone Content

Vito Falco vitofalco a gmail.com
Gio 23 Ott 2008 17:00:42 UTC


Allora, vediamo di fare le cose schematiche:
- quando crei un tuo tipo di oggetto devi notificare a Plone che è esiste e
quali sono le sue caratteristiche
- in Plone che si occupa della creazione di nuovi tipi è portal_factory
- quando crei il tuo pacchetto hai una cartella che si chiama profiles e in
questa cartella un profilo di default appunto chiamato "default" :)
- quando vuoi istruire la parte "generale" e gli strumenti "generali" di
plone (mi scusino le parole povere i colleghi plonisti :-) ) devi usare (in
generale) la scrittura in append di questi strumenti in formato xml, quindi
il tuo factorytool.xml dovrà contenere cose tipo:

> <?xml version="1.0"?>
> <!-- This import step informs the portal_factory tool that we want it to
>      manage our content types. This tool deals with the fact that in
>      Archetypes and most CMF types, the object is actually created before
>      the first edit form is filled in. That is, there are no true "add
> forms".
>      The factory tool creates a temporary object in lieu of an "add form",
>      and then moves the object to the proper location after it has been
>      successfully saved.
>   -->
> <object name="portal_factory" meta_type="Plone Factory Tool">
>   <factorytypes>
>     <!-- -*- extra stuff goes here -*- -->
>     <type portal_type="tuo-oggetto" />
>   </factorytypes>
> </object>
>

Colgo l'occasione per raccomandarti gli ottimi tutorials presenti in
"Documentation" di plone.org e il libro di Martin Aspeli (maggiori info
sempre nella sezione di cui prima).

Vito


Il giorno 23 ottobre 2008 18.29, Sandor <paulsandor a hotmail.com> ha scritto:

>
> Potresti essere più specifico sulla procedura di attivazione di
> portal_factory? Come avrai capito sono un newbie di Plone e Zope.
> Cordiali saluti.
>
> Paul
>
>
> Vito wrote:
> >
> > Ciao
> > il portal_factory è uno strumento che trovi nella rott della ISTANZA
> > Plone,
> > e non ne la root ZMI.
> >
> > Via gcsetup puoi "attivarlo" scrivendo il tuo portal_factory.xml in
> > /default/profile
> >
> > Magari fai uno snapshot via portal_setup per vedere come funzionano
> questi
> > "pezzi" ;-)
> >
> > Vito
> >
> > Il giorno 23 ottobre 2008 16.32, Sandor <paulsandor a hotmail.com> ha
> > scritto:
> >
> >>
> >> Scusa la domanda ingenua ma...
> >> in ZMI non vedo il tool portal_factory. Come faccio ad attivarlo?
> >> Saluti.
> >>
> >> Paul
> >>
> >>
> >> > Devi mettere il tuo nuovo tipo nel portal_factory, questo vale per
> ogni
> >> > AT, non dipende da GPC.
> >>
> >>
> >>
> >> --
> >> View this message in context:
> >>
> http://n2.nabble.com/Esperienze-con-Generic-Plone-Content-tp1364678p1368398.html
> >> Sent from the Plone - Italy mailing list archive at Nabble.com.
> >>
> >>
> >>
> >> _______________________________________________
> >> Plone-IT mailing list
> >> Plone-IT a 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 a lists.plone.org
> > http://lists.plone.org/mailman/listinfo/plone-it
> > http://www.nabble.com/Plone---Italy-f21728.html
> >
>
> --
> View this message in context:
> http://n2.nabble.com/Esperienze-con-Generic-Plone-Content-tp1364678p1368841.html
> Sent from the Plone - Italy mailing list archive at Nabble.com.
>
>
>
> _______________________________________________
> Plone-IT mailing list
> Plone-IT a 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
-------------- parte successiva --------------
Un allegato HTML è stato rimosso...
URL: <http://lists.plone.org/pipermail/plone-plone-it/attachments/20081023/18936334/attachment.html>


Maggiori informazioni sulla lista Plone-IT