changeset 11129 | 97095348b3ee |
parent 11084 | ffd615e626f9 |
child 12355 | c703dc95c82e |
11128:9b4de34ad394 | 11129:97095348b3ee |
---|---|
1 from cubicweb.predicates import is_instance |
|
2 from cubicweb.hooks import notification |
|
3 |
|
4 |
|
5 class FolderUpdateHook(notification.EntityUpdateHook): |
|
6 __select__ = (notification.EntityUpdateHook.__select__ & |
|
7 is_instance('Folder')) |
|
8 order = 100 # late trigger so that metadata hooks come before. |