Web2py 2.18.4 give me to save project with error and after that I can not edit it in app. I have dict: {21: '\xd0\x94\xd0\xb8\xd0\xbf\xd0\xbb\xd0\xbe\xd0\xbc \xd0\xbe \xd0\xb2\xd1\x8b\xd1\x81\xd1\x88\xd0\xb5\xd0\xbc \xd0\xbf\xd1\x80\xd0\xbe\xd1\x84\xd0\xb5\xd1\x81\xd1\x81\xd0\xb8\xd0\xbe\xd0\xbd\xd0\xb0\xd0\xbb\xd1\x8c\xd0\xbd\xd0\xbe\xd0\xbc \xd0\xbe\xd0\xb1\xd1\x80\xd0\xb0\xd0\xb7\xd0\xbe\xd0\xb2\xd0\xb0\xd0\xbd\xd0\xb8\xd0\xb8' } And I have select: SELECT(*[OPTION(value_, _value=key_) for key_, value_ in eduDocuments. iteritems()]) After that I have error in app and web2py. web2py™ Version 2.18.4-stable+timestamp.2019.03.13.05.27.54 Python Python 2.7.10: C:\Python27\python.exe (prefix: C:\Python27)Traceback
1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. Traceback (most recent call last): File ".\gluon\main.py", line 444, in wsgibase serve_controller(request, response, session) File ".\gluon\main.py", line 179, in serve_controller page = run_controller_in(request.controller, request.function, environment) File ".\gluon\compileapp.py", line 650, in run_controller_in exposed = find_exposed_functions(code) File ".\gluon\compileapp.py", line 520, in find_exposed_functions parsed = ast.parse(data) File "C:\Python27\lib\ast.py", line 37, in parse return compile(source, filename, mode, PyCF_ONLY_AST) File "<unknown>", line 87 ), ^ SyntaxError: invalid syntax Error snapshot [image: help] <http://192.168.20.184/admin/ticket/application/192.168.20.177.2019-03-16.11-48-53.dd914f6b-1648-40da-87cf-0794b278caf9#> <type 'exceptions.SyntaxError'>(invalid syntax (<unknown>, line 87)) inspect attributes Frames - *File C:\inetpub\wwwroot\gluon\main.py in wsgibase at line 444* код аргументы переменные - *File C:\inetpub\wwwroot\gluon\main.py in serve_controller at line 179* код аргументы переменные - *File C:\inetpub\wwwroot\gluon\compileapp.py in run_controller_in at line 650* код аргументы переменные - *File C:\inetpub\wwwroot\gluon\compileapp.py in find_exposed_functions at line 520* код аргументы переменные - *File C:\Python27\lib\ast.py in parse at line 37* код аргументы переменные Function argument list (source="# -*- coding: utf-8 -*-\nimport time, datetime, r...\xb8\xd0\xbd\xd0\xbe\xd1\x81\xd0\xb8\xd0\xbc \xd0\xbd\xd0\xb0\xd1\x88\xd0\xb8 \xd0\xb8\xd0\xb7\xd0\xb2\xd0\xb8\xd0\xbd\xd0\xb5\xd0\xbd\xd0\xb8\xd1\x8f.',False)\n", filename='<unknown>', mode='exec') Code listing 32. 33. 34. 35. 36. 37. 38. 39. 40. 41. def parse(source, filename='<unknown>', mode='exec'): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). """ return compile(source, filename, mode, PyCF_ONLY_AST) def literal_eval(node_or_string): """ Variables source "# -*- coding: utf-8 -*-\nimport time, datetime, r...\xb8\xd0\xbd\xd0\xbe\xd1\x81\xd0\xb8\xd0\xbc \xd0\xbd\xd0\xb0\xd1\x88\xd0\xb8 \xd0\xb8\xd0\xb7\xd0\xb2\xd0\xb8\xd0\xbd\xd0\xb5\xd0\xbd\xd0\xb8\xd1\x8f.',False)\n" builtincompile <built-in function compile> global PyCF_ONLY_AST 1024 mode 'exec' filename '<unknown>' If I do like that I don't have error: SELECT(['Диплом о высшем профессиональном образовании']) -- 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. For more options, visit https://groups.google.com/d/optout.