[Zope3-checkins] SVN: Zope3/trunk/src/zope/component/registry.txt
Some typo fixes.
Martijn Faassen
faassen at infrae.com
Fri Apr 28 06:04:32 EDT 2006
Log message for revision 67702:
Some typo fixes.
Changed:
U Zope3/trunk/src/zope/component/registry.txt
-=-
Modified: Zope3/trunk/src/zope/component/registry.txt
===================================================================
--- Zope3/trunk/src/zope/component/registry.txt 2006-04-28 09:55:12 UTC (rev 67701)
+++ Zope3/trunk/src/zope/component/registry.txt 2006-04-28 10:04:32 UTC (rev 67702)
@@ -20,7 +20,7 @@
>>> from zope.component import tests
>>> components = registry.Components('comps')
-As components atr registered, events are generated. Let's register
+As components are registered, events are generated. Let's register
an event subscriber, so we can see the events generated:
>>> import zope.event
@@ -99,9 +99,9 @@
You can get information about registered utilities with the
registeredUtilities method:
- >>> for regsitration in sorted(components.registeredUtilities()):
- ... print regsitration.provided, regsitration.name
- ... print regsitration.component, regsitration.info
+ >>> for registration in sorted(components.registeredUtilities()):
+ ... print registration.provided, registration.name
+ ... print registration.component, registration.info
<InterfaceClass zope.component.tests.I1>
U1(1)
<InterfaceClass zope.component.tests.I2>
@@ -117,9 +117,9 @@
>>> components.getUtility(tests.I1)
U1(4)
- >>> for regsitration in sorted(components.registeredUtilities()):
- ... print regsitration.provided, regsitration.name
- ... print regsitration.component, regsitration.info
+ >>> for registration in sorted(components.registeredUtilities()):
+ ... print registration.provided, registration.name
+ ... print registration.component, registration.info
<InterfaceClass zope.component.tests.I1>
U1(4) use 4 now
<InterfaceClass zope.component.tests.I2>
@@ -141,9 +141,9 @@
A boolean is returned indicating whether anything changed:
>>> components.queryUtility(tests.I1)
- >>> for regsitration in sorted(components.registeredUtilities()):
- ... print regsitration.provided, regsitration.name
- ... print regsitration.component, regsitration.info
+ >>> for registration in sorted(components.registeredUtilities()):
+ ... print registration.provided, registration.name
+ ... print registration.component, registration.info
<InterfaceClass zope.component.tests.I2>
U12(2)
<InterfaceClass zope.component.tests.I2> three
@@ -245,10 +245,10 @@
We can see the adapters that have been registered using the
registeredAdapters method:
- >>> for regsitration in sorted(components.registeredAdapters()):
- ... print regsitration.required
- ... print regsitration.provided, regsitration.name
- ... print regsitration.factory, regsitration.info
+ >>> for registration in sorted(components.registeredAdapters()):
+ ... print registration.required
+ ... print registration.provided, registration.name
+ ... print registration.factory, registration.info
... # doctest: +NORMALIZE_WHITESPACE
(<InterfaceClass zope.component.tests.I1>,
<InterfaceClass zope.component.tests.I2>)
@@ -316,10 +316,10 @@
AdapterRegistration(<Components comps>, [I1, I2], IA1, u'', A12_1, u'')
True
- >>> for regsitration in sorted(components.registeredAdapters()):
- ... print regsitration.required
- ... print regsitration.provided, regsitration.name
- ... print regsitration.factory, regsitration.info
+ >>> for registration in sorted(components.registeredAdapters()):
+ ... print registration.required
+ ... print registration.provided, registration.name
+ ... print registration.factory, registration.info
... # doctest: +NORMALIZE_WHITESPACE
(<InterfaceClass zope.component.tests.I1>,
<InterfaceClass zope.component.tests.I2>)
@@ -386,10 +386,10 @@
AdapterRegistration(<Components comps>, [I3], IA2, u'', A_2, u'')
True
- >>> for regsitration in sorted(components.registeredAdapters()):
- ... print regsitration.required
- ... print regsitration.provided, regsitration.name
- ... print regsitration.factory, regsitration.info
+ >>> for registration in sorted(components.registeredAdapters()):
+ ... print registration.required
+ ... print registration.provided, registration.name
+ ... print registration.factory, registration.info
... # doctest: +NORMALIZE_WHITESPACE
(<implementedBy zope.component.tests.U>,)
<InterfaceClass zope.component.tests.IA3>
@@ -414,8 +414,8 @@
IA3, u'', A_3, 'Really class specific')
True
- >>> for regsitration in sorted(components.registeredAdapters()):
- ... print regsitration
+ >>> for registration in sorted(components.registeredAdapters()):
+ ... print registration
Adapters can be named:
@@ -489,10 +489,10 @@
Unregistered event:
AdapterRegistration(<Components comps>, [I1], IA2, u'', A1_12, u'')
True
- >>> for regsitration in sorted(components.registeredAdapters()):
- ... print regsitration.required
- ... print regsitration.provided, regsitration.name
- ... print regsitration.factory, regsitration.info
+ >>> for registration in sorted(components.registeredAdapters()):
+ ... print registration.required
+ ... print registration.provided, registration.name
+ ... print registration.factory, registration.info
... # doctest: +NORMALIZE_WHITESPACE
(<InterfaceClass zope.component.tests.I1>,)
<InterfaceClass zope.component.tests.IA2> test 2
More information about the Zope3-Checkins
mailing list