hooks/integrity.py
brancholdstable
changeset 8746 88c71ad83d47
parent 8508 7801f2acd1dc
child 8556 bbe0d6985e59
equal deleted inserted replaced
8507:0c111b232927 8746:88c71ad83d47
    26 from yams.schema import role_name
    26 from yams.schema import role_name
    27 
    27 
    28 from cubicweb import ValidationError
    28 from cubicweb import ValidationError
    29 from cubicweb.schema import (META_RTYPES, WORKFLOW_RTYPES,
    29 from cubicweb.schema import (META_RTYPES, WORKFLOW_RTYPES,
    30                              RQLConstraint, RQLUniqueConstraint)
    30                              RQLConstraint, RQLUniqueConstraint)
    31 from cubicweb.selectors import is_instance
    31 from cubicweb.predicates import is_instance
    32 from cubicweb.uilib import soup2xhtml
    32 from cubicweb.uilib import soup2xhtml
    33 from cubicweb.server import hook
    33 from cubicweb.server import hook
    34 
    34 
    35 # special relations that don't have to be checked for integrity, usually
    35 # special relations that don't have to be checked for integrity, usually
    36 # because they are handled internally by hooks (so we trust ourselves)
    36 # because they are handled internally by hooks (so we trust ourselves)