[Zope3-checkins] SVN: Zope3/branches/ZopeX3-3.0/src/zope/app/
generate object-created events in a couple of places they
were missing
Fred L. Drake, Jr.
fdrake at gmail.com
Thu Aug 19 09:54:05 EDT 2004
Log message for revision 27185:
generate object-created events in a couple of places they were missing
(merged from trunk revision 27172)
Changed:
U Zope3/branches/ZopeX3-3.0/src/zope/app/registration/registration.py
U Zope3/branches/ZopeX3-3.0/src/zope/app/site/service.py
-=-
Modified: Zope3/branches/ZopeX3-3.0/src/zope/app/registration/registration.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/app/registration/registration.py 2004-08-19 13:47:30 UTC (rev 27184)
+++ Zope3/branches/ZopeX3-3.0/src/zope/app/registration/registration.py 2004-08-19 13:54:03 UTC (rev 27185)
@@ -19,6 +19,8 @@
from persistent import Persistent
import zope.cachedescriptors.property
+import zope.event
+
from zope.interface import implements
from zope.exceptions import DuplicationError
from zope.security.checker import InterfaceChecker, CheckerPublic
@@ -31,6 +33,7 @@
from zope.app.copypastemove import ObjectCopier
from zope.app.dependable import PathSetAnnotation
from zope.app.dependable.interfaces import IDependable, DependencyError
+from zope.app.event import objectevent
from zope.app.component.localservice import getLocalServices
from zope.app.location import inside
from zope.app.registration import interfaces
@@ -833,6 +836,7 @@
rm = RegistrationManager()
rm.__parent__ = self
rm.__name__ = 'RegistrationManager'
+ zope.event.notify(objectevent.ObjectCreatedEvent(rm))
self[rm.__name__] = rm
def __delitem__(self, name):
Modified: Zope3/branches/ZopeX3-3.0/src/zope/app/site/service.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/app/site/service.py 2004-08-19 13:47:30 UTC (rev 27184)
+++ Zope3/branches/ZopeX3-3.0/src/zope/app/site/service.py 2004-08-19 13:54:03 UTC (rev 27185)
@@ -28,6 +28,7 @@
import sys
from transaction import get_transaction
+import zope.event
import zope.interface
from zope.component.exceptions import ComponentLookupError
@@ -39,6 +40,7 @@
from zope.app.container.constraints import ItemTypePrecondition
from zope.app.container.contained import Contained
from zope.app.container.interfaces import IContainer
+from zope.app.event import objectevent
from zope.app.registration.interfaces import IRegistry
from zope.app.traversing.interfaces import IContainmentRoot
from zope.app.traversing.api import getPath
@@ -77,7 +79,9 @@
BTreeContainer.__init__(self)
self.subSites = ()
self._setNext(site)
- self['default'] = SiteManagementFolder()
+ folder = SiteManagementFolder()
+ zope.event.notify(objectevent.ObjectCreatedEvent(folder))
+ self['default'] = folder
def _setNext(self, site):
"""Find set the next service manager
More information about the Zope3-Checkins
mailing list