[Zope3-checkins] CVS: Zope3/src/zope/app/component -
metadirectives.py:1.17
Mark McEahern
mark at mceahern.com
Mon Mar 22 12:44:49 EST 2004
Update of /cvs-repository/Zope3/src/zope/app/component
In directory cvs.zope.org:/tmp/cvs-serv30921/src/zope/app/component
Modified Files:
metadirectives.py
Log Message:
Added ISubscriber schema.
=== Zope3/src/zope/app/component/metadirectives.py 1.16 => 1.17 ===
--- Zope3/src/zope/app/component/metadirectives.py:1.16 Sat Mar 20 14:52:45 2004
+++ Zope3/src/zope/app/component/metadirectives.py Mon Mar 22 12:44:48 2004
@@ -179,6 +179,31 @@
required=False
)
+class ISubscriberDirective(Interface):
+ """
+ Register a subscriber
+ """
+
+ factory = GlobalObject(
+ title=u"Subscriber factory",
+ description=u"A factory used to create the subscriber instance.",
+ required=True
+ )
+
+ for_ = Tokens(
+ title=u"Interfaces or classes that this subscriber depends on",
+ description=u"This should be a list of interfaces or classes",
+ required=True,
+ value_type=GlobalObject()
+ )
+
+ permission = Permission(
+ title=u"Permission",
+ description=u"""This subscriber is only available, if the principal has
+ this permission.""",
+ required=False
+ )
+
class IUtilityDirective(IBasicComponentInformation):
"""
Register a utility
More information about the Zope3-Checkins
mailing list