I have updated web2py from version 2.13.2 to version 2.16.1. Now I try to 
update recaptcha to version 2. But there are following mistakes...
db.py
dbstud = DAL('firebird:...', ignore_field_case=True, entity_quoting=False, 
pool_size=1, migrate_enabled=False)
from gluon.tools import Auth, Service, PluginManager, Recaptcha2
studauth = Auth(dbstud)
studauth.define_tables(username=False, signature=False)
## configure email
mail = studauth.settings.mailer
mail.settings.server = myconf.take('smtp.server')
mail.settings.sender = myconf.take('smtp.sender')
mail.settings.login = myconf.take('smtp.login')
## configure auth policy
studauth.settings.registration_requires_verification = True 
studauth.settings.registration_requires_approval = False
studauth.settings.reset_password_requires_verification = True
studauth.settings.create_user_groups = False
studauth.settings.everybody_group_id = 2
studauth.messages.verify_email = 'Нажмите на ссылку http://' +    
 request.env.http_host +    
 URL(r=request,c='default',f='user',args=['verify_email']) +     '/%(key)s 
для потверждения регистрации.'
studauth.messages.verify_email_subject = 'Приемнная комиссия РГАУ МСХА 
имени К.А. Тимирязева: подтверждение регистрации'
studauth.settings.captcha = 
Recaptcha2(request,public_key='6Ld0tFIUAAAAAIHSl4WGsUQ8itaZS7SOoQ2SLrOJ',private_key='...',label='Подтверждение')
default.py
Recaptcha2(request,public_key='6Ld0tFIUAAAAAIHSl4WGsUQ8itaZS7SOoQ2SLrOJ',private_key='...',label='Подтверждение')
Errors

Traceback (most recent call last):
  File ".\gluon\restricted.py", line 219, in restricted
    exec(ccode, environment)
  File "C:/inetpub/wwwroot/applications/oas/controllers/default.py" 
<http://192.168.20.184/admin/edit/oas/controllers/default.py>, line 81, in 
<module>
  File ".\gluon\globals.py", line 419, in <lambda>
    self._caller = lambda f: f()
  File "C:/inetpub/wwwroot/applications/oas/controllers/default.py" 
<http://192.168.20.184/admin/edit/oas/controllers/default.py>, line 43, in ask
    if form.process(formname='form').accepted:
  File ".\gluon\html.py", line 2300, in process
    self.validate(**kwargs)
  File ".\gluon\html.py", line 2238, in validate
    if self.accepts(**kwargs):
  File ".\gluon\html.py", line 2123, in accepts
    status = self._traverse(status, hideerror)
  File ".\gluon\html.py", line 886, in _traverse
    newstatus = c._traverse(status, hideerror) and newstatus
  File ".\gluon\html.py", line 893, in _traverse
    newstatus = self._validate()
  File ".\gluon\tools.py", line 1039, in _validate
    httpresp = urllib2.urlopen(request)
  File "C:\Python27\lib\urllib2.py", line 154, in urlopen
    return opener.open(url, data, timeout)
  File "C:\Python27\lib\urllib2.py", line 431, in open
    response = self._open(req, data)
  File "C:\Python27\lib\urllib2.py", line 449, in _open
    '_open', req)
  File "C:\Python27\lib\urllib2.py", line 409, in _call_chain
    result = func(*args)
  File "C:\Python27\lib\urllib2.py", line 1240, in https_open
    context=self._context)
  File "C:\Python27\lib\urllib2.py", line 1166, in do_open
    h = http_class(host, timeout=req.timeout, **http_conn_args)
  File "C:\Python27\lib\httplib.py", line 1258, in __init__
    context = ssl._create_default_https_context()
  File "C:\Python27\lib\ssl.py", line 440, in create_default_context
    context.load_default_certs(purpose)
  File "C:\Python27\lib\ssl.py", line 391, in load_default_certs
    self._load_windows_store_certs(storename, purpose)
  File "C:\Python27\lib\ssl.py", line 378, in _load_windows_store_certs
    for cert, encoding, trust in enum_certificates(storename):
WindowsError: [Error 5]





-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to