[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/ZMI - provideClass.py:1.1.2.5
Brian Lloyd
brian@digicool.com
Tue, 20 Nov 2001 16:22:42 -0500
Update of /cvs-repository/Zope3/lib/python/Zope/App/ZMI
In directory cvs.zope.org:/tmp/cvs-serv14927
Modified Files:
Tag: Zope-3x-branch
provideClass.py
Log Message:
hooked up to Addable registration
=== Zope3/lib/python/Zope/App/ZMI/provideClass.py 1.1.2.4 => 1.1.2.5 ===
from Zope.ComponentArchitecture.IFactory import IFactory
from Zope.ComponentArchitecture import provideFactory
-
+import Addable
class ClassFactory:
__implements__ = IFactory
@@ -23,7 +23,7 @@
return self._class()
-def provideClass(qualified_name, _class, permission):
+def provideClass(qualified_name, _class, permission, title, description=''):
"""Provide simple class setup
- create a component
@@ -36,3 +36,4 @@
"""
factory = ClassFactory(_class, permission)
provideFactory(qualified_name, factory)
+ Addable.provideAddable(qualified_name, title, description)