# HG changeset patch # User Julien Cristau # Date 1392728048 -3600 # Node ID a3c075fe9385c196a5c63e6b87e0d4434302a9a0 # Parent 12ee310541bb825f9fd295093672bc1181e4b163 [server/session] fix a couple typos in doc strings diff -r 12ee310541bb -r a3c075fe9385 server/session.py --- a/server/session.py Tue Feb 18 17:58:45 2014 +0100 +++ b/server/session.py Tue Feb 18 13:54:08 2014 +0100 @@ -103,7 +103,7 @@ # session stop being connection """context manager to control activated hooks categories. - If mode is`HOOKS_DENY_ALL`, given hooks categories will + If mode is `HOOKS_DENY_ALL`, given hooks categories will be enabled. If mode is `HOOKS_ALLOW_ALL`, given hooks categories will @@ -117,10 +117,10 @@ with _hooks_control(cnx, HOOKS_DENY_ALL, 'integrity'): # ... do stuff with none but 'integrity' hooks activated - This is an internal api, you should rather use + This is an internal API, you should rather use :meth:`~cubicweb.server.session.Connection.deny_all_hooks_but` or :meth:`~cubicweb.server.session.Connection.allow_all_hooks_but` - Transaction methods. + Connection methods. """ def __init__(self, cnx, mode, *categories): assert mode in (HOOKS_ALLOW_ALL, HOOKS_DENY_ALL)