web/application.py
brancholdstable
changeset 7083 b8e35cde46e9
parent 6791 fe58b234f9c2
child 7348 dce4fa28ae49
--- a/web/application.py	Fri Mar 11 09:46:45 2011 +0100
+++ b/web/application.py	Wed Mar 16 09:37:46 2011 +0100
@@ -234,6 +234,9 @@
         req.remove_cookie(req.get_cookie(), sessioncookie)
         raise LogOut(url=goto_url)
 
+    # 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
 
 class CubicWebPublisher(object):
     """the publisher is a singleton hold by the web frontend, and is responsible
@@ -458,6 +461,9 @@
             template = 'main-template'
         return template
 
+    # 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(CubicWebPublisher, LOGGER)
 set_log_methods(CookieSessionHandler, LOGGER)