Understanding and Using GenericSetup in Plone
This Tutorial applies to:
Plone 3.1.x, Plone 3.0.x, Plone 2.5.x
This Tutorial is intended for:
Site Administrators, Integrators, Customizers, Developers, Advanced Developers
rafrombrc
All content on one page (useful for printing, presentation mode etc.)
- Introduction An introduction, wherein we learn what GenericSetup is and why we even care. This tutorial is slightly out of date, but still quite relevant to Plone 3.0+. Some of the "future items" have been addressed, and additional work is being done in this area.
- Profiles (or "Make Sure You've Got My Good Side") The beginning of a high level overview of GenericSetup, wherein we learn about the different types of profiles.
- The Setup Tool Continuation of the high level GenericSetup overview, wherein we learn about the portal_setup tool and how to use it to apply profiles.
- How Profiles are Applied A little more detail on how profiles are applied, wherein we learn what REALLY happens when you click on one of the "import" buttons.
- Exports, Snapshots, and Comparisons More of the high level GenericSetup overview, wherein we learn how to export profiles, and how to use snapshots.
- Under the Hood A programmer's overview of how GenericSetup profiles work, wherein we learn about exportimport packages and node adapters.
- Applying Policies at Site Creation Time A description of how to register extension policies that can be applied at site creation time, wherein we learn how customization policies have gone the way of the dodo.
- Creating an uninstall profile GenericSetup allows you to remove configuration
- The Future What GenericSetup doesn't do, wherein we learn about cool features that don't yet exist.
- Acknowledgements Kudos and acknowledgements, wherein we learn some of the people to thank for this fine piece of code, and also where to get more assistance.
re: Customization Policy? What is that?
You may be disappointed, however; customization policies don't offer uninstall or replacement either.
re: Customization Policy? What is that?
You gave some code, but where I have to put that ?
What I want is : configure a plone site (workflow, users, installed products, etc...) and when I create a new one, have the choice to select my config in the extension profil.
Is it possible to do that with GenericSetup ?
Thanx
Customization Policies documentation
By chance, they are described in the sampler champter available from the publisher web site at http://www.packtpub.com/plone/book (sample chapter at http://www.packtpub.com/files/1027_Sample_Chapter.pdf)
skin-path dosn't yet support the remove attribute
for now you'll need to setup a custom skin handler adapter (i tried this here http://dev.plone.org/collective/browser/DIYPloneStyle/branches/2.5-gs-uninstall/exportimport/skins.py)
a patch have been apllied to the CMF collector - http://www.zope.org/Collectors/CMF/464
Customization Policy? What is that?
Hi :) Nice tutorial, but what are those Customization Policies you refer to... where can I find something like a documentation about that?
Until GenericSetup is able to uninstall and replace profiles I would prefer those...