update from 2.17.2 to 2.18.5 with errors

39 views
Skip to first unread message

António Ramos

unread,
Feb 6, 2020, 5:25:01 AM2/6/20
to web...@googlegroups.com
Hello just updated web2py from 2.17.2 to 2.18.5 and my app stopped working because of the next error in the code line:
auth.messages.verify_email = response.render(
    'templates/email_verification.html')

Error ticket for "fileit"

Ticket ID

194.65.91.147.2020-02-06.10-23-24.5ddab4f8-344c-4309-bfd0-ec2c4ef6aad0

<type 'exceptions.AttributeError'> 'NoneType' object has no attribute 'update'

Versão

web2py™Version 2.18.5-stable+timestamp.2019.04.08.04.22.03
PythonPython 2.7.5: /home/ramstein74/webapps/new2py/bin/uwsgi (prefix: /usr)

Traceback

1.
2.
3.
4.
5.
6.
7.
8.
9.
Traceback (most recent call last):
File "/home/ramstein74/webapps/new2py/web2py/gluon/restricted.py", line 219, in restricted
exec(ccode, environment)
File "/home/ramstein74/webapps/new2py/web2py/applications/fileit/models/db1.py", line 120, in <module>
'templates/email_verification.html')
File "/home/ramstein74/webapps/new2py/web2py/gluon/globals.py", line 452, in render
self._view_environment.update(self._vars)
AttributeError: 'NoneType' object has no attribute 'update'

Error snapshot help

<type 'exceptions.AttributeError'>('NoneType' object has no attribute 'update')

inspecionar atributos

Frames

  • File /home/ramstein74/webapps/new2py/web2py/gluon/restricted.py in restricted at line 219 código argumentos variáveis

  • File /home/ramstein74/webapps/new2py/web2py/applications/fileit/models/db1.py in <module> at line 120 código argumentos variáveis

  • File /home/ramstein74/webapps/new2py/web2py/gluon/globals.py in render at line 452 código argumentos variáveis

    Function argument list

    (self=<Storage {'body': <cStringIO.StringO object at 0...t 0x7f4c8f289b18>, 'view': 'default/index.html'}>, *a=('templates/email_verification.html',), **b={})

    Code listing
    447.
    448.
    449.
    450.
    451.
    452.
    453.
    454.
    455.
    456.
            elif len(a) == 1 and isinstance(a[0], dict):
    (
    view, self._vars) = (None, a[0])
    else:
    (
    view, self._vars) = (None, {})
    self._vars.update(b)
    self._view_environment.update(self._vars)
    if view:
    from gluon._compat import StringIO
    (obody, oview) = (self.body, self.view)
    (
    self.body, self.view) = (StringIO(), view)
    Variables
    self<Storage {'body': <cStringIO.StringO object at 0...t 0x7f4c8f289b18>, 'view': 'default/index.html'}>
    self._vars{}
    self._view_environmentNone
    self._view_environment.updateundefined

In file: /home/ramstein74/webapps/new2py/web2py/applications/fileit/models/db1.py

1.
<code object <module> at 0x7f4c8f06fd30, file "/home/ramstein74/webapps/new2py/web2py/applications/fileit/models/db1.py", line 2>

Este site utiliza web2py™ criado por Massimo Di Pierro ©2007-2020 - Linguagem do Admin 

Reply all
Reply to author
Forward
0 new messages