equal
deleted
inserted
replaced
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 |