Hooks triggering compute of profile compatibility should be in the metadata category
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 25 Oct 2016 14:14:52 +0200
changeset 1956 d6df3fe381be
parent 1955 b037d7f88660
child 1957 b62759f45f71
Hooks triggering compute of profile compatibility should be in the metadata category
hooks.py
--- a/hooks.py	Tue Oct 25 14:13:49 2016 +0200
+++ b/hooks.py	Tue Oct 25 14:14:52 2016 +0200
@@ -292,6 +292,7 @@
     __regid__ = 'seda.transfer.created.checkcompat'
     __select__ = hook.Hook.__select__ & is_instance('SEDAArchiveTransfer')
     events = ('after_add_entity', )
+    category = 'metadata'
 
     def __call__(self):
         CheckProfileSEDACompatiblityOp.get_instance(self._cw).add_entity(self.entity)