schema.py
branchstable
changeset 7085 36e91d19188b
parent 6951 cb6314b09e0f
parent 7083 b8e35cde46e9
child 7103 9acffa1ecb2f
--- a/schema.py	Tue Mar 15 21:36:06 2011 +0100
+++ b/schema.py	Wed Mar 16 09:40:56 2011 +0100
@@ -943,6 +943,10 @@
     def minimal_rql(self):
         return 'Any %s WHERE %s' % (self.mainvars, self.expression)
 
+    # 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 ERQLExpression(RQLExpression):
     def __init__(self, expression, mainvars=None, eid=None):
@@ -1103,6 +1107,9 @@
         """called when a file without handler associated has been found"""
         self.warning('ignoring file %r', filepath)
 
+    # 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 CubicWebSchemaLoader(BootstrapSchemaLoader):
     """cubicweb specific schema loader, automatically adding metadata to the
@@ -1140,6 +1147,9 @@
                 self.info('loading %s', filepath)
                 self.handle_file(filepath)
 
+    # 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(CubicWebSchemaLoader, getLogger('cubicweb.schemaloader'))
 set_log_methods(BootstrapSchemaLoader, getLogger('cubicweb.bootstrapschemaloader'))