Skip to content

Commit

Permalink
make sure we have zope.component <= 3.4.9999 (testing it)
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Howitz committed Aug 26, 2008
1 parent 119c89a commit ec88d5e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions buildout.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ develop = .
[zope2]
recipe = plone.recipe.zope2install
url = http://www.zope.org/Products/Zope/2.11.1/Zope-2.11.1-final.tgz
fake-zope-eggs = true
skip-fake-eggs = zope.component

[test]
recipe = zc.recipe.testrunner
Expand Down
8 changes: 8 additions & 0 deletions src/five/localsitemanager/localsitemanager.txt
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,9 @@ And then getAllUtilitiesRegisteredFor():

And registeredUtilities():

>>> list(sitemanager.registeredUtilities())
[UtilityRegistration(<PersistentComponents site>, ITestUtility, u'hello_world', <Utility TestUtility "test">, u''),
UtilityRegistration(<PersistentComponents site>, ITestUtility, u'aq_wrapped', <Utility AQTestUtility "test">, u'')]
>>> utils = [ r.component for r in sitemanager.registeredUtilities() ]
>>> len(utils)
2
Expand Down Expand Up @@ -339,6 +342,11 @@ And then getAllUtilitiesRegisteredFor():

And registeredUtilities():

>>> list(sitemanager_a.registeredUtilities())
[UtilityRegistration(<PersistentComponents /a>, ITestUtility, u'with_aq_chain', si_util_cped, u''),
UtilityRegistration(<PersistentComponents /a>, ITestUtility, u'aq_wrapped', <Utility AQTestUtility "test">, u''),
UtilityRegistration(<PersistentComponents /a>, ITestUtility, u'hello_world', <Utility TestUtility "test">, u'')]

>>> utils = [r.component for r in sitemanager_a.registeredUtilities()]
>>> len(utils)
3
Expand Down

0 comments on commit ec88d5e

Please sign in to comment.