(dp1 S'output' p2 S'' sS'layer' p3 S'Framework' p4 sS'code' p5 S'' sS'snapshot' p6 (dp7 S'exception' p8 (dp9 S'__getslice__' p10 S"" p11 sS'text' p12 S'" (T(\'Search\'), False, URL(\'search\') )]\\n"' p13 sS'__str__' p14 S"" p15 sS'__reduce__' p16 S'' p17 sS'__dict__' p18 S'{}' p19 sS'__sizeof__' p20 S'' p21 sS'message' p22 S"''" p23 sS'__init__' p24 S"" p25 sS'__setattr__' p26 S"" p27 sS'__reduce_ex__' p28 S'' p29 sS'__new__' p30 S'' p31 sS'__format__' p32 S'' p33 sS'__class__' p34 S"" p35 sS'filename' p36 S"'/home/jdalbey/Downloads/web2py/applications/Highways/models/menu.py'" p37 sS'lineno' p38 S'17' p39 sS'msg' p40 S"'invalid syntax'" p41 sS'__doc__' p42 S"'Invalid syntax.'" p43 sS'__getitem__' p44 S"" p45 sS'__setstate__' p46 S'' p47 sS'__getattribute__' p48 S"" p49 sS'print_file_and_line' p50 S'None' p51 sS'args' p52 S'(\'invalid syntax\', (\'/home/jdalbey/Downloads/web2py/applications/Highways/models/menu.py\', 17, 41, " (T(\'Search\'), False, URL(\'search\') )]\\n"))' p53 sS'__subclasshook__' p54 S'' p55 sS'offset' p56 S'41' p57 sS'__unicode__' p58 S'' p59 sS'__delattr__' p60 S"" p61 sS'__repr__' p62 S"" p63 sS'__hash__' p64 S"" p65 ssS'evalue' p66 S'invalid syntax (menu.py, line 17)' p67 sS'request' p68 cgluon.html XML_unpickle p69 (S'sPl\x00\x00
ajax:
True
application:
Highways
args:
cid:
c567919520027
client:
127.0.0.1
controller:
appadmin
cookies:
session_id_admin:
127.0.0.1-b40af4f9-4bc6-4089-a1d4-2a882e544a43
comment:
domain:
expires:
httponly:
max-age:
path:
samesite:
secure:
version:
session_id_helloworld:
127.0.0.1-95990954-99ab-426e-8e54-fa7fee77a04c
comment:
domain:
expires:
httponly:
max-age:
path:
samesite:
secure:
version:
session_id_highways:
127.0.0.1-5c5b6408-e9a1-4b21-a629-31e0898316e2
comment:
domain:
expires:
httponly:
max-age:
path:
samesite:
secure:
version:
session_id_welcome:
127.0.0.1-20f61084-4018-4e67-8342-bbf602bd1c7f
comment:
domain:
expires:
httponly:
max-age:
path:
samesite:
secure:
version:
env:
CONTENT_TYPE:
application/x-www-form-urlencoded; charset=UTF-8
HTTP_ACCEPT:
*/*
HTTP_ACCEPT_ENCODING:
gzip, deflate
HTTP_ACCEPT_LANGUAGE:
en-US,en;q=0.5
HTTP_CONNECTION:
keep-alive
HTTP_CONTENT_TYPE:
application/x-www-form-urlencoded; charset=UTF-8
HTTP_COOKIE:
session_id_welcome=127.0.0.1-20f61084-4018-4e67-8342-bbf602bd1c7f; session_id_admin=127.0.0.1-b40af4f9-4bc6-4089-a1d4-2a882e544a43; session_id_highways=127.0.0.1-5c5b6408-e9a1-4b21-a629-31e0898316e2; session_id_helloworld=127.0.0.1-95990954-99ab-426e-8e54-fa7fee77a04c
HTTP_DNT:
1
HTTP_HOST:
127.0.0.1:8000
HTTP_REFERER:
http://127.0.0.1:8000/admin/default/edit/Highways/views/layout.html?id=views__layout__html
HTTP_USER_AGENT:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:71.0) Gecko/20100101 Firefox/71.0
HTTP_WEB2PY_COMPONENT_ELEMENT:
c567919520027
HTTP_WEB2PY_COMPONENT_LOCATION:
http://127.0.0.1:8000/admin/default/edit/Highways/views/layout.html?id=views__layout__html
HTTP_X_REQUESTED_WITH:
XMLHttpRequest
PATH_INFO:
/Highways/appadmin/hooks
QUERY_STRING:
REMOTE_ADDR:
127.0.0.1
REMOTE_PORT:
59228
REQUEST_METHOD:
GET
SCRIPT_NAME:
SERVER_NAME:
Laptop-asus-X510UNR
SERVER_PORT:
8000
SERVER_PROTOCOL:
HTTP/1.1
SERVER_SOFTWARE:
Rocket 1.2.6
app_folders:
set(['/home/jdalbey/Downloads/web2py/applications/examples', '/home/jdalbey/Downloads/web2py/applications/admin', '/home/jdalbey/Downloads/web2py/applications/welcome', '/home/jdalbey/Downloads/web2py/applications/Highways', '/home/jdalbey/Downloads/web2py/applications/helloworld'])
applications_parent:
/home/jdalbey/Downloads/web2py
cmd_args:
cmd_options:
<Values at 0x7f77316484b0: {'verbose': False, 'ip': '127.0.0.1', 'debuglevel': 30, 'with_scheduler': False, 'shutdown_timeout': 5, 'taskbar': False, 'with_coverage': False, 'pid_filename': 'httpserver.pid', 'maxthreads': None, 'softcron': False, 'server_name': 'Laptop-asus-X510UNR', 'bpython': False, 'nogui': False, 'port': 8000, 'print_errors': False, 'extcron': False, 'runcron': False, 'run_system_tests': False, 'test': None, 'folder': '/home/jdalbey/Downloads/web2py', 'config': '', 'minthreads': None, 'shell': None, 'run': '', 'log_filename': 'httpserver.log', 'profiler_dir': None, 'args': [], 'socket_timeout': 5, 'ssl_ca_certificate': None, 'scheduler': None, 'interfaces': None, 'ssl_private_key': '', 'gae': None, 'password': '******', 'request_queue_size': 5, 'ssl_certificate': '', 'cronjob': False, 'numthreads': None, 'quiet': False, 'import_models': False, 'timeout': 10, 'plain': False, 'nobanner': False}>
content_type:
application/x-www-form-urlencoded; charset=UTF-8
db_sessions:
set([])
debugging:
True
gluon_parent:
/home/jdalbey/Downloads/web2py
http_accept:
*/*
http_accept_encoding:
gzip, deflate
http_accept_language:
en-US,en;q=0.5
http_connection:
keep-alive
http_content_type:
application/x-www-form-urlencoded; charset=UTF-8
http_cookie:
session_id_welcome=127.0.0.1-20f61084-4018-4e67-8342-bbf602bd1c7f; session_id_admin=127.0.0.1-b40af4f9-4bc6-4089-a1d4-2a882e544a43; session_id_highways=127.0.0.1-5c5b6408-e9a1-4b21-a629-31e0898316e2; session_id_helloworld=127.0.0.1-95990954-99ab-426e-8e54-fa7fee77a04c
http_dnt:
1
http_host:
127.0.0.1:8000
http_referer:
http://127.0.0.1:8000/admin/default/edit/Highways/views/layout.html?id=views__layout__html
http_user_agent:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:71.0) Gecko/20100101 Firefox/71.0
http_web2py_component_element:
c567919520027
http_web2py_component_location:
http://127.0.0.1:8000/admin/default/edit/Highways/views/layout.html?id=views__layout__html
http_x_requested_with:
XMLHttpRequest
is_jython:
False
is_py2:
True
is_pypy:
False
is_source:
True
local_hosts:
::1
127.0.1.1
::ffff:127.0.0.1
127.0.0.1
Laptop-asus-X510UNR
path_info:
/Highways/appadmin/hooks
query_string:
remote_addr:
127.0.0.1
remote_port:
59228
request_method:
GET
request_uri:
/Highways/appadmin/hooks
script_name:
server_name:
Laptop-asus-X510UNR
server_port:
8000
server_protocol:
HTTP/1.1
server_software:
Rocket 1.2.6
web2py_path:
/home/jdalbey/Downloads/web2py
web2py_version:
2.18.5-stable+timestamp.2019.04.08.04.22.03
wsgi.errors:
<open file '<stderr>', mode 'w' at 0x7f7738704270>
wsgi.file_wrapper:
<class wsgiref.util.FileWrapper at 0x7f7731672c90>
wsgi.input:
<socket._fileobject object at 0x7f7724735750>
wsgi.multiprocess:
False
wsgi.multithread:
True
wsgi.run_once:
False
wsgi.url_scheme:
http
wsgi.version:
1
0
wsgi_errors:
<open file '<stderr>', mode 'w' at 0x7f7738704270>
wsgi_file_wrapper:
<class wsgiref.util.FileWrapper at 0x7f7731672c90>
wsgi_input:
<socket._fileobject object at 0x7f7724735750>
wsgi_multiprocess:
False
wsgi_multithread:
True
wsgi_run_once:
False
wsgi_url_scheme:
http
wsgi_version:
1
0
extension:
html
folder:
/home/jdalbey/Downloads/web2py/applications/Highways
function:
hooks
global_settings:
app_folders:
set(['/home/jdalbey/Downloads/web2py/applications/examples', '/home/jdalbey/Downloads/web2py/applications/admin', '/home/jdalbey/Downloads/web2py/applications/welcome', '/home/jdalbey/Downloads/web2py/applications/Highways', '/home/jdalbey/Downloads/web2py/applications/helloworld'])
applications_parent:
/home/jdalbey/Downloads/web2py
cmd_args:
cmd_options:
<Values at 0x7f77316484b0: {'verbose': False, 'ip': '127.0.0.1', 'debuglevel': 30, 'with_scheduler': False, 'shutdown_timeout': 5, 'taskbar': False, 'with_coverage': False, 'pid_filename': 'httpserver.pid', 'maxthreads': None, 'softcron': False, 'server_name': 'Laptop-asus-X510UNR', 'bpython': False, 'nogui': False, 'port': 8000, 'print_errors': False, 'extcron': False, 'runcron': False, 'run_system_tests': False, 'test': None, 'folder': '/home/jdalbey/Downloads/web2py', 'config': '', 'minthreads': None, 'shell': None, 'run': '', 'log_filename': 'httpserver.log', 'profiler_dir': None, 'args': [], 'socket_timeout': 5, 'ssl_ca_certificate': None, 'scheduler': None, 'interfaces': None, 'ssl_private_key': '', 'gae': None, 'password': '******', 'request_queue_size': 5, 'ssl_certificate': '', 'cronjob': False, 'numthreads': None, 'quiet': False, 'import_models': False, 'timeout': 10, 'plain': False, 'nobanner': False}>
db_sessions:
set([])
debugging:
True
gluon_parent:
/home/jdalbey/Downloads/web2py
is_jython:
False
is_py2:
True
is_pypy:
False
is_source:
True
local_hosts:
::1
127.0.1.1
::ffff:127.0.0.1
127.0.0.1
Laptop-asus-X510UNR
web2py_version:
2.18.5-stable+timestamp.2019.04.08.04.22.03
is_https:
False
is_local:
True
is_restful:
False
is_scheduler:
False
is_shell:
False
method:
GET
now:
datetime.datetime(2019, 12, 18, 8, 2, 11, 696092)
raw_args:
raw_extension:
None
url:
/Highways/appadmin/hooks
utcnow:
datetime.datetime(2019, 12, 18, 16, 2, 11, 696131)
wsgi:
<gluon.main.LazyWSGI object at 0x7f76ef181650>
' tRp70 sS'frames' p71 (lp72 (dp73 S'file' p74 S'/home/jdalbey/Downloads/web2py/gluon/main.py' p75 sS'dump' p76 (dp77 S'global serve_controller' p78 S'' p79 sS'session' p80 S"" p81 sS'request' p82 S"" p83 sS'response' p84 S", 'view': 'appadmin/hooks.html'}>" p85 ssS'lnum' p86 I444 sS'lines' p87 (dp88 I448 S' if static_file:' p89 sI439 S' if global_settings.debugging and app != "admin":' p90 sI440 S' import gluon.debug' p91 sI441 S' # activate the debugger' p92 sI442 S' gluon.debug.dbg.do_debug(mainpyfile=request.folder)' p93 sI443 S'' sI444 S' serve_controller(request, response, session)' p94 sI445 S' except HTTP as hr:' p95 sI446 S' http_response = hr' p96 sI447 S'' ssS'call' p97 S"(environ={'CONTENT_TYPE': 'application/x-www-form-urlencoded; charset=UTF-8', 'HTTP_ACCEPT': '*/*', 'HTTP_ACCEPT_ENCODING': 'gzip, deflate', 'HTTP_ACCEPT_LANGUAGE': 'en-US,en;q=0.5', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_CONTENT_TYPE': 'application/x-www-form-urlencoded; charset=UTF-8', 'HTTP_COOKIE': 'session_id_welcome=127.0.0.1-20f61084-4018-4e67-...ld=127.0.0.1-95990954-99ab-426e-8e54-fa7fee77a04c', 'HTTP_DNT': '1', 'HTTP_HOST': '127.0.0.1:8000', 'HTTP_REFERER': 'http://127.0.0.1:8000/admin/default/edit/Highways/views/layout.html?id=views__layout__html', ...}, responder=)" p98 sS'func' p99 S'wsgibase' p100 sa(dp101 g74 S'/home/jdalbey/Downloads/web2py/gluon/main.py' p102 sg76 (dp103 S'environment' p104 S"{'A': , 'ANY_OF': , 'ASSIGNJS': , 'B': , 'BEAUTIFY': , 'BODY': , 'BR': , 'BUTTON': , 'CAT': , 'CENTER': , ...}" p105 sS'global run_models_in' p106 S'' p107 ssg86 I177 sg87 (dp108 I172 S' # also, make sure the flash is passed through' p109 sI173 S' # ##################################################' p110 sI174 S' # process models, controller and view (if required)' p111 sI175 S' # ##################################################' p112 sI176 S'' sI177 S' run_models_in(environment)' p113 sI178 S' response._view_environment = copy.copy(environment)' p114 sI179 S' page = run_controller_in(request.controller, request.function, environment)' p115 sI180 S' if isinstance(page, dict):' p116 sI181 S' response._vars = page' p117 ssg97 S"(request=, response=, 'view': 'appadmin/hooks.html'}>, session=)" p118 sg99 S'serve_controller' p119 sa(dp120 g74 S'/home/jdalbey/Downloads/web2py/gluon/compileapp.py' p121 sg76 (dp122 S'global getcfs' p123 S'' p124 sS'model' p125 S"'/home/jdalbey/Downloads/web2py/applications/Highways/models/menu.py'" p126 sS'ccode' p127 S' at 0x7f772452f030, file "/...b2py/applications/Highways/models/db.py", line 1>' p128 sS'f' S'>' p129 ssg86 I599 sg87 (dp130 I594 S' continue' p131 sI595 S' elif compiled:' p132 sI596 S' f = lambda: read_pyc(model)' p133 sI597 S' else:' p134 sI598 S' f = lambda: compile2(read_file(model), model)' p135 sI599 S' ccode = getcfs(model, model, f)' p136 sI600 S' restricted(ccode, environment, layer=model)' p137 sI601 S'' sI602 S'' sI603 S'def run_controller_in(controller, function, environment):' p138 ssg97 S"(environment={'A': , 'ANY_OF': , 'ASSIGNJS': , 'B': , 'BEAUTIFY': , 'BODY': , 'BR': , 'BUTTON': , 'CAT': , 'CENTER': , ...})" p139 sg99 S'run_models_in' p140 sa(dp141 g74 S'/home/jdalbey/Downloads/web2py/gluon/cfs.py' p142 sg76 (dp143 S'filter' p144 S'>' p145 sS'data' p146 S'undefined' p147 ssg86 I50 sg87 (dp148 I45 S' if item and item[0] == t:' p149 sI46 S' return item[1]' p150 sI47 S' if not callable(filter):' p151 sI48 S' data = read_file(filename)' p152 sI49 S' else:' p153 sI50 S' data = filter()' p154 sI51 S' cfs_lock.acquire()' p155 sI52 S' cfs[key] = (t, data)' p156 sI53 S' cfs_lock.release()' p157 sI54 S' return data' p158 ssg97 S"(key='/home/jdalbey/Downloads/web2py/applications/Highways/models/menu.py', filename='/home/jdalbey/Downloads/web2py/applications/Highways/models/menu.py', filter=>)" p159 sg99 S'getcfs' p160 sa(dp161 g74 S'/home/jdalbey/Downloads/web2py/gluon/compileapp.py' p162 sg76 (dp163 S'global read_file' p164 S'' p165 sS'model' p166 S"'/home/jdalbey/Downloads/web2py/applications/Highways/models/menu.py'" p167 sS'global compile2' p168 S'' p169 sS'f' g147 ssg86 I598 sg87 (dp170 I593 S" if not regex.search(fname) and c != 'appadmin':" p171 sI594 S' continue' p172 sI595 S' elif compiled:' p173 sI596 S' f = lambda: read_pyc(model)' p174 sI597 S' else:' p175 sI598 S' f = lambda: compile2(read_file(model), model)' p176 sI599 S' ccode = getcfs(model, model, f)' p177 sI600 S' restricted(ccode, environment, layer=model)' p178 sI601 S'' sI602 S'' ssg97 S'()' p179 sg99 S'' p180 sa(dp181 g74 S'/home/jdalbey/Downloads/web2py/gluon/restricted.py' p182 sg76 (dp183 S'builtincompile' p184 S'' p185 sS'code' p186 S'"# -*- coding: utf-8 -*-\\n# this file is released ...ex\'), \\n (T(\'Search\'), False, URL(\'search\') )]\\n"' p187 sS'layer' p188 S"'/home/jdalbey/Downloads/web2py/applications/Highways/models/menu.py'" p189 ssg86 I205 sg87 (dp190 I200 S' output = ""' p191 sI201 S' return output' p192 sI202 S'' sI203 S'' sI204 S'def compile2(code, layer):' p193 sI205 S" return compile(code, layer, 'exec')" p194 sI206 S'' sI207 S'' sI208 S"def restricted(ccode, environment=None, layer='Unknown', scode=None):" p195 sI209 S' """' p196 ssg97 S'(code="# -*- coding: utf-8 -*-\\n# this file is released ...ex\'), \\n (T(\'Search\'), False, URL(\'search\') )]\\n", layer=\'/home/jdalbey/Downloads/web2py/applications/Highways/models/menu.py\')' p197 sg99 S'compile2' p198 sasS'pyver' p199 S'Python 2.7.17: /usr/bin/python (prefix: /usr)' p200 sS'session' p201 g69 (S's\xa0\x00\x00\x00
log_number:
102
' tRp202 sS'etype' p203 S"" p204 sS'date' p205 S'Wed Dec 18 08:02:11 2019' p206 sS'response' p207 g69 (S's\xff\x17\x00\x00
body:
<cStringIO.StringO object at 0x7f76ef181e30>
cookies:
session_id_highways:
127.0.0.1-5c5b6408-e9a1-4b21-a629-31e0898316e2
comment:
domain:
expires:
httponly:
max-age:
path:
/
samesite:
secure:
version:
delimiters:
{{
}}
files:
flash:
form_label_separator:
:
formstyle:
table3cols
generic_patterns:
*
headers:
X-Powered-By:
web2py
menu:
meta:
models_to_run:
^\\w+\\.py$
^appadmin/\\w+\\.py$
^appadmin/hooks/\\w+\\.py$
postprocessing:
session_client:
127.0.0.1
session_cookie_compression_level:
None
session_cookie_expires:
None
session_data_name:
session_data_highways
session_file:
<open file '/home/jdalbey/Downloads/web2py/applications/Highways/sessions/187/1cc/127.0.0.1-5c5b6408-e9a1-4b21-a629-31e0898316e2', mode 'rb+' at 0x7f76efb984b0>
session_filename:
/home/jdalbey/Downloads/web2py/applications/Highways/sessions/127.0.0.1-5c5b6408-e9a1-4b21-a629-31e0898316e2
session_hash:
4434912d288f34449e1af2a9fcfbe21b
session_id:
127.0.0.1-5c5b6408-e9a1-4b21-a629-31e0898316e2
session_id_name:
session_id_highways
session_locked:
True
session_masterapp:
Highways
session_new:
False
session_storage_type:
file
status:
200
view:
appadmin/hooks.html
' tRp208 sS'locals' p209 (dp210 g3 S"'/home/jdalbey/Downloads/web2py/applications/Highways/models/menu.py'" p211 sg5 S'"# -*- coding: utf-8 -*-\\n# this file is released ...ex\'), \\n (T(\'Search\'), False, URL(\'search\') )]\\n"' p212 sssS'traceback' p213 S'Traceback (most recent call last):\n File "/home/jdalbey/Downloads/web2py/gluon/main.py", line 444, in wsgibase\n serve_controller(request, response, session)\n File "/home/jdalbey/Downloads/web2py/gluon/main.py", line 177, in serve_controller\n run_models_in(environment)\n File "/home/jdalbey/Downloads/web2py/gluon/compileapp.py", line 599, in run_models_in\n ccode = getcfs(model, model, f)\n File "/home/jdalbey/Downloads/web2py/gluon/cfs.py", line 50, in getcfs\n data = filter()\n File "/home/jdalbey/Downloads/web2py/gluon/compileapp.py", line 598, in \n f = lambda: compile2(read_file(model), model)\n File "/home/jdalbey/Downloads/web2py/gluon/restricted.py", line 205, in compile2\n return compile(code, layer, \'exec\')\n File "/home/jdalbey/Downloads/web2py/applications/Highways/models/menu.py", line 17\n (T(\'Search\'), False, URL(\'search\') )]\n ^\nSyntaxError: invalid syntax\n' p214 s.