D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
usr
/
share
/
doc
/
python-zope-component-4.1.0
/
html
/
_sources
/
Filename :
configure.txt
back
Copy
Package configuration ===================== .. testsetup:: from zope.component.testing import setUp setUp() The ``zope.component`` package provides a ZCML file that configures some basic event handlers. .. doctest:: >>> from zope.configuration.xmlconfig import XMLConfig >>> import zope.component >>> from zope.component import event >>> from zope.component import registry >>> XMLConfig('configure.zcml', zope.component)() >>> gsm = zope.component.getGlobalSiteManager() >>> registered = list(gsm.registeredHandlers()) >>> len(registered) 5 >>> handlers = [x.handler for x in registered] >>> event.objectEventNotify in handlers True >>> registry.dispatchUtilityRegistrationEvent in handlers True >>> registry.dispatchAdapterRegistrationEvent in handlers True >>> registry.dispatchSubscriptionAdapterRegistrationEvent in handlers True >>> registry.dispatchHandlerRegistrationEvent in handlers True .. testcleanup:: from zope.component.testing import tearDown tearDown()
Name
Size
Last Modified
Owner
Permissions
Actions
api
Dir
February 10 2022 8:31:22
root
0755
api.txt
0.231
KB
February 28 2013 2:31:18
root
0644
configure.txt
1.027
KB
February 28 2013 2:31:18
root
0644
event.txt
3.577
KB
February 28 2013 2:31:18
root
0644
factory.txt
3.063
KB
February 28 2013 2:31:18
root
0644
hacking.txt
10.157
KB
February 28 2013 2:31:18
root
0644
hooks.txt
2.726
KB
February 28 2013 2:31:18
root
0644
index.txt
0.299
KB
February 28 2013 2:31:18
root
0644
narr.txt
12.351
KB
February 28 2013 2:31:18
root
0644
persistentregistry.txt
0.202
KB
February 28 2013 2:31:18
root
0644
socketexample.txt
21.257
KB
February 28 2013 2:31:18
root
0644
testlayer.txt
3.351
KB
February 28 2013 2:31:18
root
0644
zcml.txt
31.853
KB
February 28 2013 2:31:18
root
0644
2017 © D7net | D704T team