[Zope-Checkins] CVS: Zope3/lib/python/Zope/ComponentArchitecture - metaConfigure.py:1.1.2.4
Jim Fulton
jim@zope.com
Mon, 3 Dec 2001 11:29:06 -0500
Update of /cvs-repository/Zope3/lib/python/Zope/ComponentArchitecture
In directory cvs.zope.org:/tmp/cvs-serv7286
Modified Files:
Tag: Zope-3x-branch
metaConfigure.py
Log Message:
Allow the "for" attribute to be omitted in the 'feature' directive, in
which case, None is used.
=== Zope3/lib/python/Zope/ComponentArchitecture/metaConfigure.py 1.1.2.3 => 1.1.2.4 ===
from Zope.Configuration import namespace
-def provideFeatureDir(component, provides, for_):
- provideFeature(resolve(for_), resolve(provides), resolve(component))
+def provideFeatureDir(component, provides, for_=None):
+ if for_ is not None: for_ = resolve(for_)
+ provideFeature(for_, resolve(provides), resolve(component))
def provideUtilityDir(component, provides):
provideUtility(resolve(provides), resolve(component))