[doc] check_cycle is a standard function
authorNoe Gaumont <ngaumont@logilab.fr>
Wed, 22 May 2019 11:30:52 +0200
changeset 12622 a068ce6329b5
parent 12621 092d201a7c17
child 12623 4e7ff3dd79fd
[doc] check_cycle is a standard function
doc/book/devrepo/repo/hooks.rst
--- a/doc/book/devrepo/repo/hooks.rst	Wed May 22 11:29:49 2019 +0200
+++ b/doc/book/devrepo/repo/hooks.rst	Wed May 22 11:30:52 2019 +0200
@@ -99,7 +99,7 @@
 
     from cubicweb.server.hook import Hook, DataOperationMixIn, Operation, match_rtype
 
-    def check_cycle(self, session, eid, rtype, role='subject'):
+    def check_cycle(session, eid, rtype, role='subject'):
         parents = set([eid])
         parent = session.entity_from_eid(eid)
         while parent.related(rtype, role):