(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'" format = \'%(route)s\')\\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/db.py'" p37 sS'lineno' p38 S'8' sS'msg' p39 S"'invalid syntax'" p40 sS'__doc__' p41 S"'Invalid syntax.'" p42 sS'__getitem__' p43 S"" p44 sS'__setstate__' p45 S'' p46 sS'__getattribute__' p47 S"" p48 sS'print_file_and_line' p49 S'None' p50 sS'args' p51 S'(\'invalid syntax\', (\'/home/jdalbey/Downloads/web2py/applications/Highways/models/db.py\', 8, 22, " format = \'%(route)s\')\\n"))' p52 sS'__subclasshook__' p53 S'' p54 sS'offset' p55 S'22' p56 sS'__unicode__' p57 S'' p58 sS'__delattr__' p59 S"" p60 sS'__repr__' p61 S"" p62 sS'__hash__' p63 S"" p64 ssS'evalue' p65 S'invalid syntax (db.py, line 8)' p66 sS'request' p67 cgluon.html XML_unpickle p68 (S'smr\x00\x00
ajax:
True
application:
Highways
args:
cid:
c626136914519
client:
127.0.0.1
controller:
appadmin
cookies:
session_id_admin:
127.0.0.1-11f29917-caed-4542-868c-62c1d460447f
comment:
domain:
expires:
httponly:
max-age:
path:
samesite:
secure:
version:
session_id_helloworld:
127.0.0.1-06ea5903-be4d-4f11-9562-a448469e0ad5
comment:
domain:
expires:
httponly:
max-age:
path:
samesite:
secure:
version:
session_id_highways:
127.0.0.1-01a1c93b-3cfa-45a0-95e6-146a5ed06c01
comment:
domain:
expires:
httponly:
max-age:
path:
samesite:
secure:
version:
session_id_myapp:
127.0.0.1-ddd74c98-a28f-4fdb-8564-a1c4edacaacd
comment:
domain:
expires:
httponly:
max-age:
path:
samesite:
secure:
version:
session_id_welcome:
127.0.0.1-0391f769-3e2b-4dfb-a795-9aeccf5795c6
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-0391f769-3e2b-4dfb-a795-9aeccf5795c6; session_id_admin=127.0.0.1-11f29917-caed-4542-868c-62c1d460447f; session_id_myapp=127.0.0.1-ddd74c98-a28f-4fdb-8564-a1c4edacaacd; session_id_helloworld=127.0.0.1-06ea5903-be4d-4f11-9562-a448469e0ad5; session_id_highways=127.0.0.1-01a1c93b-3cfa-45a0-95e6-146a5ed06c01
HTTP_DNT:
1
HTTP_HOST:
127.0.0.1:8000
HTTP_REFERER:
http://127.0.0.1:8000/admin/default/edit/Highways/models/db.py?id=models__db__py
HTTP_USER_AGENT:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:71.0) Gecko/20100101 Firefox/71.0
HTTP_WEB2PY_COMPONENT_ELEMENT:
c626136914519
HTTP_WEB2PY_COMPONENT_LOCATION:
http://127.0.0.1:8000/admin/default/edit/Highways/models/db.py?id=models__db__py
HTTP_X_REQUESTED_WITH:
XMLHttpRequest
PATH_INFO:
/Highways/appadmin/hooks
QUERY_STRING:
REMOTE_ADDR:
127.0.0.1
REMOTE_PORT:
59946
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/welcome', '/home/jdalbey/Downloads/web2py/applications/helloworld', '/home/jdalbey/Downloads/web2py/applications/Highways', '/home/jdalbey/Downloads/web2py/applications/admin', '/home/jdalbey/Downloads/web2py/applications/myapp'])
applications_parent:
/home/jdalbey/Downloads/web2py
cmd_args:
cmd_options:
<Values at 0x7f41226255f0: {'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-0391f769-3e2b-4dfb-a795-9aeccf5795c6; session_id_admin=127.0.0.1-11f29917-caed-4542-868c-62c1d460447f; session_id_myapp=127.0.0.1-ddd74c98-a28f-4fdb-8564-a1c4edacaacd; session_id_helloworld=127.0.0.1-06ea5903-be4d-4f11-9562-a448469e0ad5; session_id_highways=127.0.0.1-01a1c93b-3cfa-45a0-95e6-146a5ed06c01
http_dnt:
1
http_host:
127.0.0.1:8000
http_referer:
http://127.0.0.1:8000/admin/default/edit/Highways/models/db.py?id=models__db__py
http_user_agent:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:71.0) Gecko/20100101 Firefox/71.0
http_web2py_component_element:
c626136914519
http_web2py_component_location:
http://127.0.0.1:8000/admin/default/edit/Highways/models/db.py?id=models__db__py
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:
59946
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 0x7f41271db270>
wsgi.file_wrapper:
<class wsgiref.util.FileWrapper at 0x7f4122ffa910>
wsgi.input:
<socket._fileobject object at 0x7f40e5499bd0>
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 0x7f41271db270>
wsgi_file_wrapper:
<class wsgiref.util.FileWrapper at 0x7f4122ffa910>
wsgi_input:
<socket._fileobject object at 0x7f40e5499bd0>
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/welcome', '/home/jdalbey/Downloads/web2py/applications/helloworld', '/home/jdalbey/Downloads/web2py/applications/Highways', '/home/jdalbey/Downloads/web2py/applications/admin', '/home/jdalbey/Downloads/web2py/applications/myapp'])
applications_parent:
/home/jdalbey/Downloads/web2py
cmd_args:
cmd_options:
<Values at 0x7f41226255f0: {'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, 17, 17, 13, 57, 984469)
raw_args:
raw_extension:
None
url:
/Highways/appadmin/hooks
utcnow:
datetime.datetime(2019, 12, 18, 1, 13, 57, 984521)
wsgi:
<gluon.main.LazyWSGI object at 0x7f40e606d650>
' tRp69 sS'frames' p70 (lp71 (dp72 S'file' p73 S'/home/jdalbey/Downloads/web2py/gluon/main.py' p74 sS'dump' p75 (dp76 S'global serve_controller' p77 S'' p78 sS'session' p79 S'' p80 sS'request' p81 S"" p82 sS'response' p83 S", 'view': 'appadmin/hooks.html'}>" p84 ssS'lnum' p85 I444 sS'lines' p86 (dp87 I448 S' if static_file:' p88 sI439 S' if global_settings.debugging and app != "admin":' p89 sI440 S' import gluon.debug' p90 sI441 S' # activate the debugger' p91 sI442 S' gluon.debug.dbg.do_debug(mainpyfile=request.folder)' p92 sI443 S'' sI444 S' serve_controller(request, response, session)' p93 sI445 S' except HTTP as hr:' p94 sI446 S' http_response = hr' p95 sI447 S'' ssS'call' p96 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-0391f769-3e2b-4dfb-...ys=127.0.0.1-01a1c93b-3cfa-45a0-95e6-146a5ed06c01', 'HTTP_DNT': '1', 'HTTP_HOST': '127.0.0.1:8000', 'HTTP_REFERER': 'http://127.0.0.1:8000/admin/default/edit/Highways/models/db.py?id=models__db__py', ...}, responder=)" p97 sS'func' p98 S'wsgibase' p99 sa(dp100 g73 S'/home/jdalbey/Downloads/web2py/gluon/main.py' p101 sg75 (dp102 S'environment' p103 S"{'A': , 'ANY_OF': , 'ASSIGNJS': , 'B': , 'BEAUTIFY': , 'BODY': , 'BR': , 'BUTTON': , 'CAT': , 'CENTER': , ...}" p104 sS'global run_models_in' p105 S'' p106 ssg85 I177 sg86 (dp107 I172 S' # also, make sure the flash is passed through' p108 sI173 S' # ##################################################' p109 sI174 S' # process models, controller and view (if required)' p110 sI175 S' # ##################################################' p111 sI176 S'' sI177 S' run_models_in(environment)' p112 sI178 S' response._view_environment = copy.copy(environment)' p113 sI179 S' page = run_controller_in(request.controller, request.function, environment)' p114 sI180 S' if isinstance(page, dict):' p115 sI181 S' response._vars = page' p116 ssg96 S"(request=, response=, 'view': 'appadmin/hooks.html'}>, session=)" p117 sg98 S'serve_controller' p118 sa(dp119 g73 S'/home/jdalbey/Downloads/web2py/gluon/compileapp.py' p120 sg75 (dp121 S'global getcfs' p122 S'' p123 sS'model' p124 S"'/home/jdalbey/Downloads/web2py/applications/Highways/models/db.py'" p125 sS'ccode' p126 S'undefined' p127 sS'f' S'>' p128 ssg85 I599 sg86 (dp129 I594 S' continue' p130 sI595 S' elif compiled:' p131 sI596 S' f = lambda: read_pyc(model)' p132 sI597 S' else:' p133 sI598 S' f = lambda: compile2(read_file(model), model)' p134 sI599 S' ccode = getcfs(model, model, f)' p135 sI600 S' restricted(ccode, environment, layer=model)' p136 sI601 S'' sI602 S'' sI603 S'def run_controller_in(controller, function, environment):' p137 ssg96 S"(environment={'A': , 'ANY_OF': , 'ASSIGNJS': , 'B': , 'BEAUTIFY': , 'BODY': , 'BR': , 'BUTTON': , 'CAT': , 'CENTER': , ...})" p138 sg98 S'run_models_in' p139 sa(dp140 g73 S'/home/jdalbey/Downloads/web2py/gluon/cfs.py' p141 sg75 (dp142 S'filter' p143 S'>' p144 sS'data' p145 g127 ssg85 I50 sg86 (dp146 I45 S' if item and item[0] == t:' p147 sI46 S' return item[1]' p148 sI47 S' if not callable(filter):' p149 sI48 S' data = read_file(filename)' p150 sI49 S' else:' p151 sI50 S' data = filter()' p152 sI51 S' cfs_lock.acquire()' p153 sI52 S' cfs[key] = (t, data)' p154 sI53 S' cfs_lock.release()' p155 sI54 S' return data' p156 ssg96 S"(key='/home/jdalbey/Downloads/web2py/applications/Highways/models/db.py', filename='/home/jdalbey/Downloads/web2py/applications/Highways/models/db.py', filter=>)" p157 sg98 S'getcfs' p158 sa(dp159 g73 S'/home/jdalbey/Downloads/web2py/gluon/compileapp.py' p160 sg75 (dp161 S'global read_file' p162 S'' p163 sS'model' p164 S"'/home/jdalbey/Downloads/web2py/applications/Highways/models/db.py'" p165 sS'global compile2' p166 S'' p167 sS'f' g127 ssg85 I598 sg86 (dp168 I593 S" if not regex.search(fname) and c != 'appadmin':" p169 sI594 S' continue' p170 sI595 S' elif compiled:' p171 sI596 S' f = lambda: read_pyc(model)' p172 sI597 S' else:' p173 sI598 S' f = lambda: compile2(read_file(model), model)' p174 sI599 S' ccode = getcfs(model, model, f)' p175 sI600 S' restricted(ccode, environment, layer=model)' p176 sI601 S'' sI602 S'' ssg96 S'()' p177 sg98 S'' p178 sa(dp179 g73 S'/home/jdalbey/Downloads/web2py/gluon/restricted.py' p180 sg75 (dp181 S'builtincompile' p182 S'' p183 sS'code' p184 S'\'b = DAL("sqlite://storage.sqlite")\\n\\ndb.define_ta...um)\\ndb.highways.lognum.requires = IS_NOT_EMPTY()\\n\'' p185 sS'layer' p186 S"'/home/jdalbey/Downloads/web2py/applications/Highways/models/db.py'" p187 ssg85 I205 sg86 (dp188 I200 S' output = ""' p189 sI201 S' return output' p190 sI202 S'' sI203 S'' sI204 S'def compile2(code, layer):' p191 sI205 S" return compile(code, layer, 'exec')" p192 sI206 S'' sI207 S'' sI208 S"def restricted(ccode, environment=None, layer='Unknown', scode=None):" p193 sI209 S' """' p194 ssg96 S'(code=\'b = DAL("sqlite://storage.sqlite")\\n\\ndb.define_ta...um)\\ndb.highways.lognum.requires = IS_NOT_EMPTY()\\n\', layer=\'/home/jdalbey/Downloads/web2py/applications/Highways/models/db.py\')' p195 sg98 S'compile2' p196 sasS'pyver' p197 S'Python 2.7.17: /usr/bin/python (prefix: /usr)' p198 sS'session' p199 g68 (S's\x1a\x00\x00\x00
' tRp200 sS'etype' p201 S"" p202 sS'date' p203 S'Tue Dec 17 17:13:57 2019' p204 sS'response' p205 g68 (S's\xbd\x16\x00\x00
body:
<cStringIO.StringO object at 0x7f40e606d8b0>
cookies:
session_id_highways:
127.0.0.1-6028ad2f-267a-4a2a-a147-d22269906b42
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:
None
session_filename:
/home/jdalbey/Downloads/web2py/applications/Highways/sessions/127.0.0.1-6028ad2f-267a-4a2a-a147-d22269906b42
session_hash:
c0762cbf4baf7f9af97c051e7fcb8083
session_id:
127.0.0.1-6028ad2f-267a-4a2a-a147-d22269906b42
session_id_name:
session_id_highways
session_masterapp:
Highways
session_new:
True
session_storage_type:
file
status:
200
view:
appadmin/hooks.html
' tRp206 sS'locals' p207 (dp208 g3 S"'/home/jdalbey/Downloads/web2py/applications/Highways/models/db.py'" p209 sg5 S'\'b = DAL("sqlite://storage.sqlite")\\n\\ndb.define_ta...um)\\ndb.highways.lognum.requires = IS_NOT_EMPTY()\\n\'' p210 sssS'traceback' p211 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/db.py", line 8\n format = \'%(route)s\')\n ^\nSyntaxError: invalid syntax\n' p212 s.