[Zope3-checkins] CVS: Zope3/src/zope/app/interfaces/services -
registration.py:1.16
Jim Fulton
jim at zope.com
Wed Feb 11 02:01:09 EST 2004
Update of /cvs-repository/Zope3/src/zope/app/interfaces/services
In directory cvs.zope.org:/tmp/cvs-serv12331/src/zope/app/interfaces/services
Modified Files:
registration.py
Log Message:
Moved a containment constraint to the correct interface.
=== Zope3/src/zope/app/interfaces/services/registration.py 1.15 => 1.16 ===
--- Zope3/src/zope/app/interfaces/services/registration.py:1.15 Thu Feb 5 23:13:36 2004
+++ Zope3/src/zope/app/interfaces/services/registration.py Wed Feb 11 02:01:09 2004
@@ -363,9 +363,6 @@
"""Manage Registrations
"""
- def __setitem__(name, object):
- """Add to object"""
-
class IRegistrationManagerContainer(IContainer):
"""Containers with registration managers
@@ -423,14 +420,18 @@
"""
+ def __setitem__(name, object):
+ """Add to object"""
+
class IRegisterable(IAnnotatable, IContained):
"""A marker interface."""
__parent__ = Field(
constraint = ContainerTypesConstraint(IRegistrationManagerContainer))
-IRegistrationManager['__setitem__'].setTaggedValue(
- 'precondition', ItemTypePrecondition(IRegisterable))
+IRegistrationManagerContainer['__setitem__'].setTaggedValue(
+ 'precondition',
+ ItemTypePrecondition(IRegisterable, IRegistrationManagerContainer))
class IRegistered(Interface):
More information about the Zope3-Checkins
mailing list