server/hook.py
changeset 3087 dbbaa628f0f9
parent 2968 0e3460341023
child 3090 8184bec7414d
--- a/server/hook.py	Wed Sep 02 10:53:51 2009 +0200
+++ b/server/hook.py	Wed Sep 02 10:54:04 2009 +0200
@@ -165,7 +165,8 @@
 
     def __call__(self):
         if hasattr(self, 'call'):
-            warn('[3.6] %s: call is deprecated, implements __call__' % self.__class__)
+            warn('[3.6] %s: call is deprecated, implements __call__' % self.__class__,
+                 DeprecationWarning))
             if self.event.endswith('_relation'):
                 self.call(self._cw, self.eidfrom, self.rtype, self.eidto)
             elif 'delete' in self.event: