[Checkins] SVN: Sandbox/ulif/megrok.login/src/megrok/login/tests/autoregister.py Update docs.
Uli Fouquet
uli at gnufix.de
Mon Dec 8 08:54:31 EST 2008
Log message for revision 93783:
Update docs.
Changed:
U Sandbox/ulif/megrok.login/src/megrok/login/tests/autoregister.py
-=-
Modified: Sandbox/ulif/megrok.login/src/megrok/login/tests/autoregister.py
===================================================================
--- Sandbox/ulif/megrok.login/src/megrok/login/tests/autoregister.py 2008-12-08 13:53:45 UTC (rev 93782)
+++ Sandbox/ulif/megrok.login/src/megrok/login/tests/autoregister.py 2008-12-08 13:54:31 UTC (rev 93783)
@@ -4,11 +4,18 @@
:Test-Layer: functional
-If the `megrok.login.enable` directive is used, we get a login page
-when trying to access a protected view.
+When (beside `megrok.login.enable()`, which is always necessary), the
+`megrok.login.autoregister()` directive is used, then all credentials
+that contain a new username are automatically registered and accepted
+when logging in.
-We create an instance of App and store it in the ZODB::
+The `autoregister` directive expects a permission name as
+argument. This permission is granted to each auto-registered user. You
+can also use this directive multiple times to grant more than one
+permission.
+We create an instance of ``AutoRegisterApp`` and store it in the ZODB::
+
>>> from megrok.login.tests.autoregister import AutoRegisterApp
>>> root = getRootFolder()
>>> root['app'] = AutoRegisterApp()
More information about the Checkins
mailing list