I have that string in controller:
res,flag=send_application(msg,entrant_XML)
and send_application function:
def send_application(msg,entrant_XML):
#my code
return('My message',False)
I get error:
Ticket ID
46.73.180.207.2019-06-20.10-47-49.e820b49a-8731-495f-9156-0d75ad265046
<class 'TypeError'> cannot unpack non-iterable NoneType objectВерсия
web2py™ Version 2.18.5-stable+timestamp.2019.04.08.04.22.03
Python Python 3.7.3: C:\Python\python.exe (prefix: C:\Python)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/bak.py", line
2101, in <module>
File ".\gluon\globals.py", line 421, in <lambda>
self._caller = lambda f: f()
File "C:\inetpub\wwwroot\applications\application\controllers/bak.py", line
1625, in send_app
res,flag=send_application(msg,entrant_XML)
TypeError: cannot unpack non-iterable NoneType object
Error snapshot [image: help]
<http://10.250.10.160/admin/ticket/application/46.73.180.207.2019-06-20.10-47-49.e820b49a-8731-495f-9156-0d75ad265046#>
TypeError(cannot unpack non-iterable NoneType object)
inspect attributes
Frames
-
*File C:\inetpub\wwwroot\gluon\restricted.py in restricted at line 219*
код аргументы переменные
-
*File C:\inetpub\wwwroot\applications\application\controllers\bak.py in
<module> at line 2101* код аргументы переменные
-
*File C:\inetpub\wwwroot\gluon\globals.py in <lambda> at line 421* код
аргументы переменные
-
*File C:\inetpub\wwwroot\applications\application\controllers\bak.py in
send_app at line 1625* код аргументы переменные
Function argument list
()
Code listing
1620.
1621.
1622.
1623.
1624.
1625.
1626.
1627.
1628.
1629.
)
)
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:
heading = ''
statement = ''
clear_abit_app()
Variables
res undefined
flag undefined
global send_application <function send_application>
msg '<div align="right">My text</html>'
entrant_XML '<?xml version="1.0" ?><entrant>\n <personaldat.../reg>\n
</exam>\n </marks>\n </entrant>'
--
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].
To view this discussion on the web visit
https://groups.google.com/d/msgid/web2py/783569fd-af3d-47fa-b75c-704b551f1de2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.