[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/ Added
a registration
event dispatcher for component registrations so that developers can
explicitly
register for a registration event (e.g. activated and deactivated)
rather than having to check for specific component instances.
Jim Fulton
jim at zope.com
Mon Feb 7 19:16:16 EST 2005
Garrett Smith wrote:
> Log message for revision 29078:
> Added a registration event dispatcher for component registrations so that developers can explicitly register for a registration event (e.g. activated and deactivated) rather than having to check for specific component instances.
>
> This change includes conversion of existing subscribers to component registration events to use the new scheme.
>
....
This checkin broke the following tests:
Running UNIT tests from /home/jim/z3/33
Error in test test_deactivated (zope.app.site.tests.test_serviceregistration.Test)
Traceback (most recent call last):
File "/home/jim/z3/33/src/zope/app/site/tests/test_serviceregistration.py", line 109, in test_deactivated
from zope.app.site.service import handleDeactivated
ImportError: cannot import name handleDeactivated
Error in test test_handleActivated (zope.app.site.tests.test_serviceregistration.Test)
Traceback (most recent call last):
File "/home/jim/z3/33/src/zope/app/site/tests/test_serviceregistration.py", line 102, in test_handleActivated
from zope.app.site.service import handleActivated
ImportError: cannot import name handleActivated
These tests import a function that you removed.
Jim
--
Jim Fulton mailto:jim at zope.com Python Powered!
CTO (540) 361-1714 http://www.python.org
Zope Corporation http://www.zope.com http://www.zope.org
More information about the Zope3-Checkins
mailing list