[doc] fix data hooks parent class in Hooks doc. stable
authorAnthony Truchet <anthony.truchet@logilab.fr>
Fri, 04 Nov 2011 17:29:39 +0100
branchstable
changeset 8062 ffd510fb71da
parent 8053 fcb2d83de850
child 8063 1b2a05c9b71c
[doc] fix data hooks parent class in Hooks doc.
doc/book/en/devrepo/repo/hooks.rst
--- a/doc/book/en/devrepo/repo/hooks.rst	Fri Nov 04 13:00:33 2011 +0100
+++ b/doc/book/en/devrepo/repo/hooks.rst	Fri Nov 04 17:29:39 2011 +0100
@@ -110,7 +110,7 @@
             parents.add(parent.eid)
 
 
-    class CheckSubsidiaryCycleOp(DataOperationMixIn, Operation):
+    class CheckSubsidiaryCycleOp(Operation):
 
         def precommit_event(self):
             check_cycle(self.session, self.eidto, 'subsidiary_of')
@@ -145,7 +145,7 @@
        def __call__(self):
            CheckSubsidiaryCycleOp.get_instance(self._cw).add_data(self.eidto)
 
-   class CheckSubsidiaryCycleOp(Operation):
+   class CheckSubsidiaryCycleOp(DataOperationMixIn, Operation):
 
        def precommit_event(self):
            for eid in self.get_data():