[Cubicweb] Hook order
Sylvain Thénault
sylvain.thenault at logilab.fr
Thu Feb 18 07:43:13 CET 2010
On 17 février 15:00, Sandrine Ribeau wrote:
> Hi there,
Hi,
> Is there a way to specify an order in which we would like to execute hooks? I
> am struggled with one issue where a PreCommitOperation is executed after a
> Hook handling 'after_add_entity' events.
>
> I would like to be able to say execute my Operation first and then the hook. Is
> that possible? Or maybe should I move code from my hook to my operation?
by essence, Operation are executed at commit time, once all hooks have been
executed (except ones potentially triggered by those operations)
--
Sylvain Thénault LOGILAB, Paris (France)
Formations Python, Debian, Méth. Agiles: http://www.logilab.fr/formations
Développement logiciel sur mesure: http://www.logilab.fr/services
CubicWeb, the semantic web framework: http://www.cubicweb.org
More information about the Cubicweb
mailing list