[PATCH saem_ref] [seda] Unregister "checkcard" hooks not wanted in saem_ref

Denis Laxalde denis.laxalde at logilab.fr
Thu Oct 19 11:42:46 CEST 2017


# HG changeset patch
# User Denis Laxalde <denis.laxalde at logilab.fr>
# Date 1508404382 -7200
#      Thu Oct 19 11:13:02 2017 +0200
# Node ID 57e4cff1342539458b16c5e53790a1e1b18aea1b
# Parent  cb66f34c60172f250bfc2835a01685992bc98d5d
[seda] Unregister "checkcard" hooks not wanted in saem_ref

diff --git a/cubicweb_saem_ref/hooks.py b/cubicweb_saem_ref/hooks.py
--- a/cubicweb_saem_ref/hooks.py
+++ b/cubicweb_saem_ref/hooks.py
@@ -480,6 +480,14 @@ class AuthorityRecordUsedBySetDefault(ho
 def registration_callback(vreg):
     vreg.register_all(globals().values(), __name__)
 
+    # Unregister SEDA "checkcard" hooks with are not wanted in saem_ref.
+    from cubicweb_seda.hooks import (
+        AddedCardinalityCheckedRelationHook,
+        UpdatedCardinalityCheckedEntityHook,
+    )
+    vreg.unregister(AddedCardinalityCheckedRelationHook)
+    vreg.unregister(UpdatedCardinalityCheckedEntityHook)
+
     from cubicweb.server import ON_COMMIT_ADD_RELATIONS
     from cubicweb_compound import utils
     from . import ConceptSchemeGraph



More information about the saem-devel mailing list