--- a/server/hook.py Fri Mar 11 09:46:45 2011 +0100
+++ b/server/hook.py Wed Mar 16 09:37:46 2011 +0100
@@ -454,6 +454,9 @@
order = 0
# XXX deprecated
enabled = True
+ # stop pylint from complaining about missing attributes in Hooks classes
+ eidfrom = eidto = entity = rtype = None
+
@classmethod
def check_events(cls):
@@ -757,6 +760,10 @@
def config(self):
return self.session.repo.config
+ # these are overridden by set_log_methods below
+ # only defining here to prevent pylint from complaining
+ info = warning = error = critical = exception = debug = lambda msg,*a,**kw: None
+
set_log_methods(Operation, getLogger('cubicweb.session'))
def _container_add(container, value):