res,flag=send_application(msg,entrant_XML)
def send_application(msg,entrant_XML):
#my code
return('My message',False)46.73.180.207.2019-06-20.10-47-49.e820b49a-8731-495f-9156-0d75ad265046
| 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) |
1. | Traceback (most recent call last): |

TypeError(cannot unpack non-iterable NoneType object)
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 код аргументы переменные
()
1620. | ) |
| 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>' |
def send_application(msg,entrant_XML): #Letter for operator try: oper = mail.send('oper...@domen.ru','Theme','Letter text...',attachments = files) except Exception: oper = False
#Letter for entrant try: abit = mail.send(session.abit_email,'Theme','Letter text...') except Exception: abit = False
if ((oper==True) & (abit==True)): return ('My message',True) elif ((oper==True) & (abit==False)): return ('My message',False) elif ((oper==False) & (abit==True)): return ('My message',False) else ((False) & (False)):
return ('My message',False)if ((oper==True) & (abit==True)): return ('My message 1',True) elif ((oper==True) & (abit==False)): return ('My message 2',False) elif ((oper==False) & (abit==True)): return ('My message 3',False)