Re: GenericSetup support
Rob Miller <ra-UE+B0n23d/[email protected]>
| Newsgroups | gmane.comp.web.zope.plone.archetypes.devel |
|---|---|
| Message-ID | <[email protected]> |
Hanno Schlichting wrote: > Hi. > > I have been working on CMF2.0/2.1 support on the Archipelago sprint. The > only area where I could not get this working is indeed the FTI creation. > > From what I have seen so far, the only sensible option for Plone 3.0 / > Archetypes 1.5 will be to support FTI creation only through GenericSetup > profiles. All the current magic (like installTypes) in Archetypes (as > well as in ATContentTypes and CMFDynamicViewFTI) is basically broken. well, Plone 2.5 is already using GenericSetup to create all of the ATCT types; the ATCT Install.py file never gets called. we should probably put deprecation warnings in the installTypes method. > I'm going to look into this further, but would appreciate any help from > people that either now GenericSetup or the current Archetypes approach. > > Especially I have no clear idea how to sanely handle the ATCT migration > which takes place as part of Plone 2.1. The current code is not going to > work in CMF2.0 :( GenericSetup profiles still trigger python code which actually does the FTI creation. for migration we'll still have to do this programmatically. the failure of the migration, then, is not due to GenericSetup so much as it is changes in the FTI creation code. the best thing to do is to examine the Products.CMFCore.exportimport.typeinfo module, which contains the GenericSetup node importer that actually performs the type creation. > Also some hints for how-to create extension profiles for a product which > will replace the installTypes machinery are most welcome ;) remember is far from complete (or even working), but it uses an extension profile to install itself: http://svn.plone.org/view/collective/remember/trunk/profiles/default/ there are also several extension profiles defined in the CMF itself, CMFUid contains one, CMFCalendar as well, IIRC. -r ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642