equal
deleted
inserted
replaced
25 from logging import getLogger |
25 from logging import getLogger |
26 from warnings import warn |
26 from warnings import warn |
27 |
27 |
28 from logilab.common.decorators import cached, clear_cache, monkeypatch |
28 from logilab.common.decorators import cached, clear_cache, monkeypatch |
29 from logilab.common.logging_ext import set_log_methods |
29 from logilab.common.logging_ext import set_log_methods |
30 from logilab.common.deprecation import deprecated, class_moved |
30 from logilab.common.deprecation import deprecated, class_moved, moved |
31 from logilab.common.textutils import splitstrip |
31 from logilab.common.textutils import splitstrip |
32 from logilab.common.graph import get_cycles |
32 from logilab.common.graph import get_cycles |
33 from logilab.common.compat import any |
33 from logilab.common.compat import any |
34 |
34 |
35 from yams import BadSchemaDefinition, buildobjs as ybo |
35 from yams import BadSchemaDefinition, buildobjs as ybo |
1239 return orig_set_statement_type(self, bw_normalize_etype(etype)) |
1239 return orig_set_statement_type(self, bw_normalize_etype(etype)) |
1240 stmts.Select.set_statement_type = bw_set_statement_type |
1240 stmts.Select.set_statement_type = bw_set_statement_type |
1241 |
1241 |
1242 # XXX deprecated |
1242 # XXX deprecated |
1243 |
1243 |
1244 from yams.buildobjs import RichString |
|
1245 from yams.constraints import StaticVocabularyConstraint |
1244 from yams.constraints import StaticVocabularyConstraint |
1246 |
1245 |
1247 RichString = class_moved(RichString) |
1246 RichString = moved('yams.buildobjs', 'RichString') |
1248 |
1247 |
1249 StaticVocabularyConstraint = class_moved(StaticVocabularyConstraint) |
1248 StaticVocabularyConstraint = class_moved(StaticVocabularyConstraint) |
1250 FormatConstraint = class_moved(FormatConstraint) |
1249 FormatConstraint = class_moved(FormatConstraint) |
1251 |
1250 |
1252 PyFileReader.context['ERQLExpression'] = yobsolete(ERQLExpression) |
1251 PyFileReader.context['ERQLExpression'] = yobsolete(ERQLExpression) |