Merge pull request #1275 from BuhtigithuB/Improve/gluon-tools-py

PEP8 Recaptcha/2 docstring
This commit is contained in:
mdipierro
2016-04-08 23:35:10 -05:00

View File

@@ -820,12 +820,12 @@ class Recaptcha(DIV):
Examples:
Use as::
form = FORM(Recaptcha(public_key='...',private_key='...'))
form = FORM(Recaptcha(public_key='...', private_key='...'))
or::
form = SQLFORM(...)
form.append(Recaptcha(public_key='...',private_key='...'))
form.append(Recaptcha(public_key='...', private_key='...'))
"""
@@ -984,17 +984,17 @@ class Recaptcha2(DIV):
Examples:
Use as::
form = FORM(Recaptcha2(public_key='...',private_key='...'))
form = FORM(Recaptcha2(public_key='...', private_key='...'))
or::
form = SQLFORM(...)
form.append(Recaptcha2(public_key='...',private_key='...'))
form.append(Recaptcha2(public_key='...', private_key='...'))
to protect the login page instead, use::
from gluon.tools import Recaptcha2
auth.settings.captcha = Recaptcha2(request, public_key='...',private_key='...')
auth.settings.captcha = Recaptcha2(request, public_key='...', private_key='...')
"""