Re: [Zope-CMF] Re: GenericSetup dependency support

2007-11-22 Thread Wichert Akkerman
Previously Tres Seaver wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 Wichert Akkerman wrote:
  I did some work on a wichert-dependencies branch for GenericSetup today.
  It works quite simple: runAllImportStepsFromProfile will now look for
  required contexts in the profile metadata. Any found dependencies will
  be imported before the current code is imported. There is a new option
  ignore_dependencies which can be used to disable this behaviour.
  
  I would appreciate some more eyes on these changes before merging this.
 
 The changes look good to me, although I'm not sure I understand the use
 case.

Mostly it solves a maintenance problem: it is quite common for a product
to require one or more other products. You can merge the necessary
GS profile for those into your product but that means you have to
duplicate and maintain that information in multiple places, and likely
across multiple developers as well. 

I made a branch of CMFQuickInstaller which makes this particularly nice:
it listens to the new events fired by GenericSetup to mark products as
installed when their profile is fully loaded. Combining these two allows
users to install a product and automatically have all its dependencies
installed in the site as well.

Wichert.


-- 
Wichert Akkerman [EMAIL PROTECTED]It is simple to make things.
http://www.wiggy.net/   It is hard to make things simple.
___
Zope-CMF maillist  -  Zope-CMF@lists.zope.org
http://mail.zope.org/mailman/listinfo/zope-cmf

See http://collector.zope.org/CMF for bug reports and feature requests


Re: [Zope-CMF] Re: GenericSetup dependency support

2007-11-22 Thread Wichert Akkerman
Previously Tres Seaver wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 Wichert Akkerman wrote:
  I did some work on a wichert-dependencies branch for GenericSetup today.
  It works quite simple: runAllImportStepsFromProfile will now look for
  required contexts in the profile metadata. Any found dependencies will
  be imported before the current code is imported. There is a new option
  ignore_dependencies which can be used to disable this behaviour.
  
  I would appreciate some more eyes on these changes before merging this.
 
 The changes look good to me, although I'm not sure I understand the use
 case.
 
 BTW, why does Plone 3 still not display alternate BASE profiles
 registered for IPloneSite:  it shows EXTENSION profiles just fine.

Channeling Hanno:

  it should. That's a bug.

Wichert.

-- 
Wichert Akkerman [EMAIL PROTECTED]It is simple to make things.
http://www.wiggy.net/   It is hard to make things simple.
___
Zope-CMF maillist  -  Zope-CMF@lists.zope.org
http://mail.zope.org/mailman/listinfo/zope-cmf

See http://collector.zope.org/CMF for bug reports and feature requests