hooks/test/data/hooks.py
changeset 11084 ffd615e626f9
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/hooks/test/data/hooks.py	Tue Dec 01 16:10:18 2015 +0100
@@ -0,0 +1,8 @@
+from cubicweb.predicates import is_instance
+from cubicweb.hooks import notification
+
+
+class FolderUpdateHook(notification.EntityUpdateHook):
+    __select__ = (notification.EntityUpdateHook.__select__ &
+                  is_instance('Folder'))
+    order = 100  # late trigger so that metadata hooks come before.