Skip to content

Commit

Permalink
Re-separated component and event setup. It would be nice to combine
Browse files Browse the repository at this point in the history
these, but if we do, we need to put them in an entirely new API,
deprecating the old apis.  Existing software may use the component
setup and then new it's own setup for objectEventNotify. If the
component setup sets up this handler, then it will be doubly setup,
causing tests to fail.
  • Loading branch information
Jim Fulton committed Apr 26, 2006
1 parent 9fa4b56 commit c98811d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions contained.py
Expand Up @@ -406,7 +406,7 @@ def setitem(container, setitemf, name, object):
If we run this using the testing framework, we'll use `getEvents` to
track the events generated:
>>> from zope.component.testing import getEvents
>>> from zope.component.eventtesting import getEvents
>>> from zope.lifecycleevent.interfaces import IObjectModifiedEvent
We have an added event:
Expand Down Expand Up @@ -601,7 +601,7 @@ def uncontained(object, container, name=None):
If we run this using the testing framework, we'll use `getEvents` to
track the events generated:
>>> from zope.component.testing import getEvents
>>> from zope.component.eventtesting import getEvents
>>> from zope.lifecycleevent.interfaces import IObjectModifiedEvent
>>> from zope.app.container.interfaces import IObjectRemovedEvent
Expand Down
2 changes: 1 addition & 1 deletion tests/test_objectcopier.py
Expand Up @@ -20,7 +20,7 @@
import zope.component
from zope.testing import doctest
from zope.traversing.api import traverse
from zope.component.testing import getEvents, clearEvents
from zope.component.eventtesting import getEvents, clearEvents
from zope.copypastemove import ObjectCopier
from zope.copypastemove.interfaces import IObjectCopier

Expand Down
2 changes: 1 addition & 1 deletion tests/test_objectmover.py
Expand Up @@ -20,7 +20,7 @@
import zope.component
from zope.testing import doctest
from zope.traversing.api import traverse
from zope.component.testing import getEvents, clearEvents
from zope.component.eventtesting import getEvents, clearEvents
from zope.copypastemove import ObjectMover
from zope.copypastemove.interfaces import IObjectMover

Expand Down
2 changes: 1 addition & 1 deletion tests/test_ordered.py
Expand Up @@ -17,7 +17,7 @@
"""
import unittest
from zope.testing.doctestunit import DocTestSuite
from zope.component.testing import getEvents, clearEvents
from zope.component.eventtesting import getEvents, clearEvents
from zope.app.testing import placelesssetup, setup

def test_order_events():
Expand Down

0 comments on commit c98811d

Please sign in to comment.