--- a/server/hook.py Fri Jul 02 19:14:48 2010 +0200
+++ b/server/hook.py Mon Jul 05 12:04:32 2010 +0200
@@ -63,7 +63,7 @@
from cubicweb import RegistryNotFound
from cubicweb.cwvreg import CWRegistry, VRegistry
from cubicweb.selectors import (objectify_selector, lltrace, ExpectedValueSelector,
- implements)
+ is_instance)
from cubicweb.appobject import AppObject
from cubicweb.server.session import security_enabled
@@ -246,7 +246,7 @@
if ertype.islower():
rtypes.append(ertype)
else:
- cls.__select__ = cls.__select__ & implements(ertype)
+ cls.__select__ = cls.__select__ & is_instance(ertype)
if rtypes:
cls.__select__ = cls.__select__ & match_rtype(*rtypes)
return cls
@@ -262,7 +262,7 @@
def __call__(self):
if hasattr(self, 'call'):
cls = self.__class__
- warn('[3.6] %s.%s: call is deprecated, implements __call__'
+ warn('[3.6] %s.%s: call is deprecated, implement __call__'
% (cls.__module__, cls.__name__), DeprecationWarning)
if self.event.endswith('_relation'):
self.call(self._cw, self.eidfrom, self.rtype, self.eidto)