server/migractions.py
changeset 8190 2a3c1b787688
parent 8181 166ad5458ed8
child 8210 1d1cfc97f6b9
equal deleted inserted replaced
8189:2ee0ef069fa7 8190:2a3c1b787688
     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
    49 from yams.constraints import SizeConstraint
    49 from yams.constraints import SizeConstraint
    50 from yams.schema2sql import eschema2sql, rschema2sql
    50 from yams.schema2sql import eschema2sql, rschema2sql
    51 from yams.schema import RelationDefinitionSchema
    51 from yams.schema import RelationDefinitionSchema
    52 
    52 
    53 from cubicweb import CW_SOFTWARE_ROOT, AuthenticationError, ExecutionError
    53 from cubicweb import CW_SOFTWARE_ROOT, AuthenticationError, ExecutionError
    54 from cubicweb.selectors import is_instance
    54 from cubicweb.predicates import is_instance
    55 from cubicweb.schema import (ETYPE_NAME_MAP, META_RTYPES, VIRTUAL_RTYPES,
    55 from cubicweb.schema import (ETYPE_NAME_MAP, META_RTYPES, VIRTUAL_RTYPES,
    56                              PURE_VIRTUAL_RTYPES,
    56                              PURE_VIRTUAL_RTYPES,
    57                              CubicWebRelationSchema, order_eschemas)
    57                              CubicWebRelationSchema, order_eschemas)
    58 from cubicweb.cwvreg import CW_EVENT_MANAGER
    58 from cubicweb.cwvreg import CW_EVENT_MANAGER
    59 from cubicweb.dbapi import get_repository, repo_connect
    59 from cubicweb.dbapi import get_repository, repo_connect