From 1372086146174298645576de36e07b045f8cf730 Mon Sep 17 00:00:00 2001 From: Florian Hatat Date: Tue, 20 Nov 2018 09:07:10 +0100 Subject: [PATCH] Fix typo: need_login calls do_login, not do_logout --- docs/source/guides/module.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/guides/module.rst b/docs/source/guides/module.rst index 5f9bd2f636..78ca0c0e25 100644 --- a/docs/source/guides/module.rst +++ b/docs/source/guides/module.rst @@ -386,7 +386,7 @@ Then, each method on your browser which needs your user to be authenticated may You finally have to set correctly the :func:`logged ` attribute of each page you use. The :func:`need_login ` decorator checks if the current page is a logged one by reading the attribute :func:`logged ` of the instance. This attributes defaults to ``False``, which means that :func:`need_login -` will first call :func:`do_logout ` before calling the +` will first call :func:`do_login ` before calling the decorated method. You can either define it yourself, as a class boolean attribute or as a property, or inherit your class from :class:`LoggedPage `. -- GitLab