[zc.buildout] Accessing part configuration from other recipe?

April 18, 2008
6:45 p.m.
Hi, is it possible to get hold of the buildout configuration of part A from within the recipe configured for part B? Usecase: the configuration of part A should work as blueprint for actions performed through the recipe configured for part B. Andreas

April 2008
6:54 p.m.
On Apr 18, 2008, at 2:45 PM, Andreas Jung wrote:
is it possible to get hold of the buildout configuration of part A from within the recipe configured for part B?
Yes. The __init__ method of a recipe can read other section options using buildout[section_name][option_name]. Note that any data read should be reflected in the reading parts options so that buildout can know if a part's configuration has changed. Jim -- Jim Fulton Zope Corporation
6296
Age (days ago)
6296
Last active (days ago)
1 comments
2 participants
participants (2)
-
Andreas Jung
-
Jim Fulton