[Product-Developers] need help with creating content using generic setup
Andrew Burkhalter
andrewburkhalter at gmail.com
Tue Dec 2 07:58:54 UTC 2008
The last I checked, there was no way to trigger a portal_catalog
rebuild/update upon content creation. You'll need to either rebuild the
catalog or reindex your created objects after the structure step has run
within a custom import step.
See for example all of the 'reindexObject' method calls here:
http://svn.plone.org/svn/plone/Plone/tags/3.1.7/Products/CMFPlone/setuphandlers.py
Hope that helps.
Andrew
On Thu, Nov 27, 2008 at 6:38 AM, Hilbert Markus <hilbert.markus at gmail.com>wrote:
> hi list,
>
> i'm interested in creating some folders by using generic setup.
> i did that following this instruction:
>
> http://plone.org/documentation/how-to/add-a-folder-structure-to-your-product
>
> my profile looks like that:
> profile/
> default/
> structure/
> .objects # containing foo,Large Plone Folder
> foo/
> .objects # file is empty
> .properties
>
> .properties contains
> [DEFAULT]
> description = This is a foobar folder
> title = FooBar
>
> after installing the product a 'foo (FooBar)'-folder has been created in
> portal-root.
> but on the plone site (not zmi) the folders displayed title (in
> portal-section and contents-list) is 'foo' like the name of the folder on
> the filesystem.
>
> after clicking edit and save without any changes the correct title FooBar
> is displayed.
> i think thats not the way it should be...
>
> any ideas/help?
>
> ah, my setup (buildout-based)
> * Plone 3.1.7
> * CMF 2.1.1
> * Zope (Zope 2.10.6-final, python 2.4.4, darwin)
> * Python 2.4.4 (#1, Nov 17 2008, 15:59:05) [GCC 4.0.1 (Apple Inc. build
> 5465)]
> * PIL 1.1.6
>
>
> iham
>
>
> _______________________________________________
> Product-Developers mailing list
> Product-Developers at lists.plone.org
> http://lists.plone.org/mailman/listinfo/product-developers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.plone.org/pipermail/plone-product-developers/attachments/20081201/023a4012/attachment.html>
More information about the Product-Developers
mailing list