#95: Rewrite portal creation code
- Contents
- Proposed by
- Christian Heimes
- Proposal type
- Architecture
- State
- rejected
Motivation
The current portal creation code is creating a Plone 2.0-some_wiered_kind_of_alpha portal and then (ab)using the migration suite to migrate the portal to 2.1. It's slow, ugly and hard to understand. Especially the code that is modifying the portal catalog is reacatalog indexes and objects over and over again.
With a clean and nice bootstrapping suite we could safe precious time in our unit test suite, too.
Assumptions
Plone 2.2 is using CMF 1.5 or newer
CMFSetup fits our needs
Proposal
Use CMFSetup to configure the portal. Enhance Archetypes and ATContentTypes to play nice with CMFSetup and add CMFSetup support to them.
XXX: Needs discussion!
Risks
Migration from 2.1 or older might be harder. For debugging one has to understand XML, too.
GenericSetup