cubicweb/hooks/test/data/hooks.py
author David Douard <david.douard@logilab.fr>
Mon, 16 Oct 2017 12:10:19 +0200
branch3.26
changeset 12291 b640ef6ad633
parent 11129 97095348b3ee
child 12355 c703dc95c82e
permissions -rw-r--r--
[utils/statsd_logger] flake8

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.