In my controller I have function: def send_app(): if session.abit_email is None:redirect('https://oas.timacad.ru/application', client_side=True) const = {rec.NAME:rec.TEXT for rec in db((db.t_const.NAME=='RECTOR_RANKU') | (db.t_const.NAME=='PREDSEDU') | (db.t_const.NAME=='VUZ')).select(db.t_const.NAME,db.t_const.TEXT)} rectorRank = const['RECTOR_RANKU'] rectorName = const['PREDSEDU'] *vuzName* = const['VUZ'] statement=create_application_for_edit(rectorRank,rectorName,vuzName) ... and it's code create_application_for_edit function: def create_application_for_edit(rectorRank,rectorName,vuzName): ... if session.edu_course_name!='Без курсов': edu = edu + 'Закончил(-а) подготовительные курсы {0}: <b>{1}</b>. '.format(*vuzName*,session.edu_course_name) ... Today I see one user get error 10 times: NameError(name 'vuzName' is not defined) After that I see automatic letter from him on email. It means that error was and something happened and error was gone and that user can send automatic letter from my function. How it is possible?
-- 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 web2py+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/ee17ac90-9ba0-41c7-90a6-2883bfb499c3%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.