Skip to content

Commit

Permalink
remove registration of AttributeAnnotations as a view
Browse files Browse the repository at this point in the history
  • Loading branch information
davisagli committed Mar 18, 2013
1 parent 2198a62 commit f31303b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 11 deletions.
5 changes: 2 additions & 3 deletions CHANGES.txt
Expand Up @@ -2,11 +2,10 @@
CHANGES
=======

4.1.1 (unreleased)
4.2.0 (2013-03-18)
------------------

- Nothing changed yet.

- Don't make AttributeAnnotations available as a view.

4.1.0 (2013-02-24)
------------------
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -41,7 +41,7 @@ def alltests():

setup(
name='zope.annotation',
version='4.1.1.dev0',
version='4.2.0',
url='http://pypi.python.org/pypi/zope.annotation',
license='ZPL 2.1',
description='Object annotation mechanism',
Expand Down
6 changes: 0 additions & 6 deletions src/zope/annotation/configure.zcml
Expand Up @@ -8,10 +8,4 @@
factory=".attribute.AttributeAnnotations"
/>

<adapter
for=".interfaces.IAttributeAnnotatable *"
provides=".interfaces.IAnnotations"
factory=".attribute.AttributeAnnotations"
/>

</configure>
2 changes: 1 addition & 1 deletion src/zope/annotation/tests/test_configure.py
Expand Up @@ -36,7 +36,7 @@ def test_configure_should_register_n_components(self):
zope.configuration.xmlconfig.XMLConfig(
'configure.zcml', zope.annotation)()
self.assertEqual(u_count + 2, len(list(gsm.registeredUtilities())))
self.assertEqual(a_count + 2, len(list(gsm.registeredAdapters())))
self.assertEqual(a_count + 1, len(list(gsm.registeredAdapters())))
self.assertEqual(
s_count, len(list(gsm.registeredSubscriptionAdapters())))
self.assertEqual(h_count, len(list(gsm.registeredHandlers())))

0 comments on commit f31303b

Please sign in to comment.