hooks/integrity.py
changeset 8190 2a3c1b787688
parent 7502 e7190f7e850e
child 8500 bfc1875ce9e3
equal deleted inserted replaced
8189:2ee0ef069fa7 8190:2a3c1b787688
    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)