[Plone-IT] CREAZIONE CONTAINER IN AUTOMATICO
Yuri
yurj a alfa.it
Mar 13 Ott 2009 14:29:43 UTC
ryuga ha scritto:
> CIAO A TUTTI,
> PROVO A SPIEGARMI..
> VORREI , SE OSSIBILE, CAPIRE DOVE PLONE ALL'ATTO DELL'INSTALLAZIONE CREA I
> CONTENUTI :
> - MEMBERS
> - NEWS
> - EVENTS
>
> GRAZIE A CHI E' IN ASCOLTO....
>
lo fa il profilo di cmfplone, credo:
$ pwd
/home/yurj/progetti/plone/test/zinstance/parts/plone/CMFPlone/profiles/default/structure
yurj a macbook:~/progetti/plone/test/zinstance/parts/plone/CMFPlone/profiles/default/structure$
ls -l
totale 12
-rw-r--r-- 1 yurj yurj 5183 2 ott 2008 front-page
drwxr-xr-x 2 yurj yurj 4096 20 nov 2008 Members
yurj a macbook:~/progetti/plone/test/zinstance/parts/plone/CMFPlone/profiles/default/structure$
more .objects
Members,Large Plone Folder
front-page,Document
yurj a macbook:~/progetti/plone/test/zinstance/parts/plone/CMFPlone/profiles/default/structure$
more .preserve
Members
front-page
yurj a macbook:~/progetti/plone/test/zinstance/parts/plone/CMFPlone/profiles/default/structure$
more .properties
[DEFAULT]
description =
title = Portal
$ cat front-page
id: front-page
title: Welcome to Plone
excludeFromNav: False
subject:
description: Congratulations! You have successfully installed Plone.
contributors:
effectiveDate: None
expirationDate: None
language:
rights:
creation_date: 2007/04/02 14:28:30 US/Central
modification_date: 2007/04/02 14:28:30 US/Central
relatedItems:
allowDiscussion: None
Content-Type: text/html
<p class="discreet">
If you're seeing this instead of the web site you were expecting, the
owner of
this web site has just installed Plone. Do not contact the Plone Team
or the Plone mailing lists about this.
</p>
etc etc
il resto viene fatto nel setuphandler.py
yurj a macbook:~/progetti/plone/test/zinstance/parts/plone/CMFPlone$ grep
news setuphandlers.py
if 'news' not in existing:
news_title = 'News'
news_desc = 'Site News'
news_title = util.translate(u'news-title',
news_desc = util.translate(u'news-description',
_createObjectByType('Large Plone Folder', p, id='news',
title=news_title, description=news_desc)
_createObjectByType('Topic', p.news, id='aggregator',
title=news_title, description=news_desc)
folder = p.news
topic = p.news.aggregator
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> 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
Maggiori informazioni sulla lista
Plone-IT