schema.py
branchstable
changeset 8463 a964c40adbe3
parent 8258 88a7d2c49d39
child 8540 fee98af8bb33
equal deleted inserted replaced
8461:8af7c6d86efb 8463:a964c40adbe3
     1 # copyright 2003-2011 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
     1 # copyright 2003-2012 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
     2 # contact http://www.logilab.fr/ -- mailto:contact@logilab.fr
     2 # contact http://www.logilab.fr/ -- mailto:contact@logilab.fr
     3 #
     3 #
     4 # This file is part of CubicWeb.
     4 # This file is part of CubicWeb.
     5 #
     5 #
     6 # CubicWeb is free software: you can redistribute it and/or modify it under the
     6 # CubicWeb is free software: you can redistribute it and/or modify it under the
  1245     return orig_set_statement_type(self, bw_normalize_etype(etype))
  1245     return orig_set_statement_type(self, bw_normalize_etype(etype))
  1246 stmts.Select.set_statement_type = bw_set_statement_type
  1246 stmts.Select.set_statement_type = bw_set_statement_type
  1247 
  1247 
  1248 # XXX deprecated
  1248 # XXX deprecated
  1249 
  1249 
  1250 from yams.buildobjs import RichString
       
  1251 from yams.constraints import StaticVocabularyConstraint
  1250 from yams.constraints import StaticVocabularyConstraint
  1252 
  1251 
  1253 try: # for yams < 0.35
  1252 RichString = moved('yams.buildobjs', 'RichString')
  1254     RichString = class_moved(RichString)
       
  1255 except TypeError:
       
  1256     RichString = moved('yams.buildobjs', 'RichString')
       
  1257 
  1253 
  1258 StaticVocabularyConstraint = class_moved(StaticVocabularyConstraint)
  1254 StaticVocabularyConstraint = class_moved(StaticVocabularyConstraint)
  1259 FormatConstraint = class_moved(FormatConstraint)
  1255 FormatConstraint = class_moved(FormatConstraint)
  1260 
  1256 
  1261 PyFileReader.context['ERQLExpression'] = yobsolete(ERQLExpression)
  1257 PyFileReader.context['ERQLExpression'] = yobsolete(ERQLExpression)