After I edit project (write or delete any strings) I have got error from
time to time like that:
Traceback
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
Traceback (most recent call last):
File ".\gluon\restricted.py", line 219, in restricted
exec(ccode, environment)
File "C:\inetpub\wwwroot\applications\application\controllers/mag.py", line
1968, in <module>
File ".\gluon\globals.py", line 421, in <lambda>
self._caller = lambda f: f()
File "C:\inetpub\wwwroot\applications\application\controllers/mag.py", line
1509, in send_app
res,flag=send_application(msg,entrant_XML)
TypeError: 'NoneType' object is not iterable
Error snapshot [image: help]
<http://192.168.20.184/admin/ticket/application/192.168.20.177.2019-03-16.14-03-33.003a4f1a-b945-4f87-9e6c-10eb23ef7c63#>
<type 'exceptions.TypeError'>('NoneType' object is not iterable)
inspect attributes
Frames
-
*File C:\inetpub\wwwroot\gluon\restricted.py in restricted at line 219*
код аргументы переменные
-
*File C:\inetpub\wwwroot\applications\application\controllers\mag.py in
<module> at line 1968* код аргументы переменные
-
*File C:\inetpub\wwwroot\gluon\globals.py in <lambda> at line 421* код
аргументы переменные
-
*File C:\inetpub\wwwroot\applications\application\controllers\mag.py in
send_app at line 1509* код аргументы переменные
Function argument list
()
Code listing
1504.
1505.
1506.
1507.
1508.
1509.
1510.
1511.
1512.
1513.
)
)
if form.process(formname='form',onvalidation=check_agreement).accepted:
msg=create_application(rectorRank,rectorName,vuzName)
entrant_XML=create_XML_entrant(form.vars.abit_pass)
res,flag=send_application(msg,entrant_XML)
if flag:
clear_abit_app()
heading = ''
statement = ''
Variables
msg '<div align="right">\xd0\x98.\xd0\xbe.
\xd1\x80\xd0\xb5\xd0\xba\xd1\x82\xd0\xbe\xd1\x80\xd0\xb0 \xd0\x92.\xd0\x9f.
...\xd0\xbc\xd1\x8b\xd1\x85 \xd0\xb4\xd0\xbb\xd1\x8f
\xd0\xbf\xd0\xbe\xd1\x81\xd1\x82\xd1\x83\xd0\xbf\xd0\xbb\xd0\xb5\xd0\xbd\xd0\xb8\xd1\x8f.\n
</html>'
res undefined
flag undefined
entrant_XML '<?xml version="1.0" ?><entrant>\n <personaldat...date>\n
</exam>\n </marks>\n </entrant>'
global send_application <function send_application>
Context
Maybe web2py add space symbol? But that problem can go away by itself. What
I need to do in that case? Why are variables res and flag underfined?
--
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.