Skip to content

Commit

Permalink
coverage report, history, dependencies, minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
rnixx committed Oct 15, 2012
1 parent a40c673 commit a26047c
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 24 deletions.
40 changes: 22 additions & 18 deletions README.rst
Expand Up @@ -248,28 +248,28 @@ TestCoverage
Summary of the test coverage report::

lines cov% module
62 100% node.base
34 100% node.behaviors.__init__
112 100% node.behaviors.alias
43 100% node.behaviors.attributes
53 100% node.behaviors.cache
132 100% node.behaviors.common
58 100% node.behaviors.lifecycle
125 100% node.behaviors.mapping
35 100% node.behaviors.nodespace
85 100% node.behaviors.nodify
112 100% node.behaviors.order
85 100% node.behaviors.reference
30 100% node.behaviors.storage
21 100% node.events
133 100% node.interfaces
50 100% node.base
11 100% node.behaviors.__init__
107 100% node.behaviors.alias
38 100% node.behaviors.attributes
50 100% node.behaviors.cache
118 100% node.behaviors.common
49 100% node.behaviors.lifecycle
114 100% node.behaviors.mapping
31 100% node.behaviors.nodespace
79 100% node.behaviors.nodify
108 100% node.behaviors.order
80 100% node.behaviors.reference
27 100% node.behaviors.storage
18 100% node.events
124 100% node.interfaces
23 100% node.locking
1 100% node.testing.__init__
62 100% node.testing.base
24 100% node.testing.env
215 100% node.testing.fullmapping
18 100% node.testing.env
216 100% node.testing.fullmapping
29 100% node.tests
121 100% node.utils
119 100% node.utils


Contributors
Expand All @@ -285,9 +285,13 @@ Contributors
Changes
=======


0.9.9dev
--------

- Python 2.7 compatibility.
[rnix, 2012-10-15]

- Remove ``zope.component.event`` B/C.
[rnix, 2012-10-15]

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -29,7 +29,7 @@
zip_safe=True,
install_requires=[
'setuptools',
'odict',
'odict>1.5',
'plumber',
'zope.lifecycleevent',
'zope.deprecation',
Expand Down
9 changes: 4 additions & 5 deletions src/node/behaviors/reference.py
Expand Up @@ -42,14 +42,13 @@ def __init__(_next, self, *args, **kw):
@plumb
def __setitem__(_next, self, key, val):
if INode.providedBy(val):
has_children = False
for valkey in val.iterkeys():
has_children = True
break
if has_children:
try:
val.iterkeys().next()
keys = set(self._index.keys())
if keys.intersection(val._index.keys()):
raise ValueError(u"Node with uuid already exists")
except StopIteration:
pass
self._index.update(val._index)
val._index = self._index
_next(self, key, val)
Expand Down

0 comments on commit a26047c

Please sign in to comment.