[Zope-Checkins] CVS: Zope/lib/python/App - ZopeComponents.py:1.1.2.4 __init__.py:1.3.202.2
Shane Hathaway
shane@digicool.com
Fri, 5 Oct 2001 12:04:33 -0400
Update of /cvs-repository/Zope/lib/python/App
In directory cvs.zope.org:/tmp/cvs-serv14999
Modified Files:
Tag: ComponentArchitecture-branch
ZopeComponents.py __init__.py
Log Message:
Finished first implementation of adders based on features.
=== Zope/lib/python/App/ZopeComponents.py 1.1.2.3 => 1.1.2.4 ===
+def provideAddFeature(name, *args, **kw):
+ if _add_registry.has_key(name):
+ raise 'Already registered', name
+ _add_registry[name] = FeatureAdderEntry(name, *args, **kw)
+
+
def listAddableTypes(object):
return _add_registry.values()
=== Zope/lib/python/App/__init__.py 1.3.202.1 => 1.3.202.2 ===
##############################################################################
-from ZopeComponents import Adder, provideAddPresentation
+from ZopeComponents import Adder, provideAddPresentation, provideAddFeature