Skip to content

Commit

Permalink
extends is now override
Browse files Browse the repository at this point in the history
  • Loading branch information
jensens committed Jul 30, 2012
1 parent fc55cd0 commit 7e74212
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/node/ext/zodb/behaviors.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from plumber import (
Behavior,
default,
extend,
override,
finalize,
plumb,
)
Expand Down Expand Up @@ -30,22 +30,22 @@ class ZODBBehavior(Behavior):
"""This part requires plumbed class to inherit from Persistent.
"""

@extend
@override
@property
def __parent__(self):
"""Always expect _v_parent to be set, see __setattr__ and
__getitem__.
"""
return self._v_parent

@extend
@override
def __getitem__(self, key):
v = self.storage[key]
if INode.providedBy(v):
v._v_parent = self
return v

@extend
@override
def __setattr__(self, name, value):
"""If name is __parent__, write value to _v_parent. This avoids
_p_changed to be set set by Persitent.__setattr__. Using a read/write
Expand Down

0 comments on commit 7e74212

Please sign in to comment.