equal
deleted
inserted
replaced
9 __docformat__ = "restructuredtext en" |
9 __docformat__ = "restructuredtext en" |
10 |
10 |
11 from cubicweb import ValidationError |
11 from cubicweb import ValidationError |
12 from cubicweb.schema import RQLConstraint, RQLUniqueConstraint |
12 from cubicweb.schema import RQLConstraint, RQLUniqueConstraint |
13 from cubicweb.selectors import entity_implements |
13 from cubicweb.selectors import entity_implements |
14 from cubicweb.common.uilib import soup2xhtml |
14 from cubicweb.uilib import soup2xhtml |
15 from cubicweb.server import hook |
15 from cubicweb.server import hook |
16 |
16 |
17 # special relations that don't have to be checked for integrity, usually |
17 # special relations that don't have to be checked for integrity, usually |
18 # because they are handled internally by hooks (so we trust ourselves) |
18 # because they are handled internally by hooks (so we trust ourselves) |
19 DONT_CHECK_RTYPES_ON_ADD = set(('owned_by', 'created_by', |
19 DONT_CHECK_RTYPES_ON_ADD = set(('owned_by', 'created_by', |