diff options
| author | Jason Madden <jamadden@gmail.com> | 2021-03-18 08:00:59 -0500 |
|---|---|---|
| committer | Jason Madden <jamadden@gmail.com> | 2021-03-18 08:18:11 -0500 |
| commit | f81a7f8448225f45bad51ed8aa52b0f27640d625 (patch) | |
| tree | f578e64bb47f54652cb67d55206acd6fd3dc5ef6 /docs | |
| parent | 41cafd34b01555bc5c8bb7fe1b6181a7acf32fe7 (diff) | |
| download | zope-component-issue9.tar.gz | |
Fix the subscriber directive when a factory is given that implements an interface and no provides= attribute is specified.issue9
fixes #9
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/zcml.rst | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/docs/zcml.rst b/docs/zcml.rst index 18afc81..6bcd786 100644 --- a/docs/zcml.rst +++ b/docs/zcml.rst @@ -690,13 +690,12 @@ subscriber should be registered for: >>> clearZCML() >>> runSnippet(''' ... <subscriber - ... provides="zope.component.testfiles.adapter.IS" ... factory="zope.component.testfiles.adapter.A3" ... />''') >>> content = Content() >>> a2 = A2() - >>> subscribers = zope.component.subscribers((content, a1, a2), IS) + >>> subscribers = zope.component.subscribers((content, a1, a2), I3) >>> a3 = subscribers[0] >>> a3.__class__ is A3 |
