equal
deleted
inserted
replaced
932 |
932 |
933 @property |
933 @property |
934 def minimal_rql(self): |
934 def minimal_rql(self): |
935 return 'Any %s WHERE %s' % (self.mainvars, self.expression) |
935 return 'Any %s WHERE %s' % (self.mainvars, self.expression) |
936 |
936 |
|
937 # these are overridden by set_log_methods below |
|
938 # only defining here to prevent pylint from complaining |
|
939 info = warning = error = critical = exception = debug = lambda msg,*a,**kw: None |
|
940 |
937 |
941 |
938 class ERQLExpression(RQLExpression): |
942 class ERQLExpression(RQLExpression): |
939 def __init__(self, expression, mainvars=None, eid=None): |
943 def __init__(self, expression, mainvars=None, eid=None): |
940 RQLExpression.__init__(self, expression, mainvars or 'X', eid) |
944 RQLExpression.__init__(self, expression, mainvars or 'X', eid) |
941 |
945 |
1092 |
1096 |
1093 def unhandled_file(self, filepath): |
1097 def unhandled_file(self, filepath): |
1094 """called when a file without handler associated has been found""" |
1098 """called when a file without handler associated has been found""" |
1095 self.warning('ignoring file %r', filepath) |
1099 self.warning('ignoring file %r', filepath) |
1096 |
1100 |
|
1101 # these are overridden by set_log_methods below |
|
1102 # only defining here to prevent pylint from complaining |
|
1103 info = warning = error = critical = exception = debug = lambda msg,*a,**kw: None |
1097 |
1104 |
1098 class CubicWebSchemaLoader(BootstrapSchemaLoader): |
1105 class CubicWebSchemaLoader(BootstrapSchemaLoader): |
1099 """cubicweb specific schema loader, automatically adding metadata to the |
1106 """cubicweb specific schema loader, automatically adding metadata to the |
1100 instance's schema |
1107 instance's schema |
1101 """ |
1108 """ |
1129 for cube in cubes: |
1136 for cube in cubes: |
1130 for filepath in self.get_schema_files(cube): |
1137 for filepath in self.get_schema_files(cube): |
1131 self.info('loading %s', filepath) |
1138 self.info('loading %s', filepath) |
1132 self.handle_file(filepath) |
1139 self.handle_file(filepath) |
1133 |
1140 |
|
1141 # these are overridden by set_log_methods below |
|
1142 # only defining here to prevent pylint from complaining |
|
1143 info = warning = error = critical = exception = debug = lambda msg,*a,**kw: None |
1134 |
1144 |
1135 set_log_methods(CubicWebSchemaLoader, getLogger('cubicweb.schemaloader')) |
1145 set_log_methods(CubicWebSchemaLoader, getLogger('cubicweb.schemaloader')) |
1136 set_log_methods(BootstrapSchemaLoader, getLogger('cubicweb.bootstrapschemaloader')) |
1146 set_log_methods(BootstrapSchemaLoader, getLogger('cubicweb.bootstrapschemaloader')) |
1137 set_log_methods(RQLExpression, getLogger('cubicweb.schema')) |
1147 set_log_methods(RQLExpression, getLogger('cubicweb.schema')) |
1138 |
1148 |