(dp1 S'output' p2 S" object of type 'NoneType' has no len()" p3 sS'layer' p4 S'/Users/allyquan/iCloud Drive/Documents/LaneClosure/web2py/applications/LCSv1/controllers/default.py' p5 sS'code' p6 S' at 0x10a842330, file "/Users/allyquan/iCloud Drive/Documents/LaneClosure/web2py/applications/LCSv1/controllers/default.py", line 3>' p7 sS'snapshot' p8 (dp9 S'exception' p10 (dp11 S'__getslice__' p12 S"" p13 sS'__str__' p14 S"" p15 sS'__reduce__' p16 S'' p17 sS'__dict__' p18 S'{}' p19 sS'message' p20 S'"object of type \'NoneType\' has no len()"' p21 sS'__sizeof__' 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'__doc__' p36 S"'Inappropriate argument type.'" p37 sS'__getitem__' p38 S"" p39 sS'__setstate__' p40 S'' p41 sS'__getattribute__' p42 S"" p43 sS'args' p44 S'("object of type \'NoneType\' has no len()",)' p45 sS'__subclasshook__' p46 S'' p47 sS'__unicode__' p48 S'' p49 sS'__delattr__' p50 S"" p51 sS'__repr__' p52 S"" p53 sS'__hash__' p54 S"" p55 ssS'evalue' p56 S"object of type 'NoneType' has no len()" p57 sS'request' p58 cgluon.html XML_unpickle p59 (S's\xdc\\\x00\x00
ajax:
False
application:
LCSv1
args:
cid:
None
client:
127.0.0.1
controller:
default
cookies:
session_id_lcsv1:
127.0.0.1-aa69abec-6b1c-4ab9-8d58-6728cdb7b1d5
comment:
domain:
expires:
httponly:
max-age:
path:
samesite:
secure:
version:
env:
HTTP_ACCEPT:
text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9
HTTP_ACCEPT_ENCODING:
gzip, deflate, br
HTTP_ACCEPT_LANGUAGE:
en-US,en;q=0.9,zh;q=0.8,vi;q=0.7
HTTP_CACHE_CONTROL:
max-age=0
HTTP_CONNECTION:
keep-alive
HTTP_COOKIE:
session_id_lcsv1=127.0.0.1-aa69abec-6b1c-4ab9-8d58-6728cdb7b1d5
HTTP_HOST:
127.0.0.1:8001
HTTP_REFERER:
http://127.0.0.1:8001/LCSv1/default/search
HTTP_SEC_FETCH_DEST:
document
HTTP_SEC_FETCH_MODE:
navigate
HTTP_SEC_FETCH_SITE:
same-origin
HTTP_SEC_FETCH_USER:
?1
HTTP_UPGRADE_INSECURE_REQUESTS:
1
HTTP_USER_AGENT:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36
PATH_INFO:
/LCSv1/default/results
QUERY_STRING:
REMOTE_ADDR:
127.0.0.1
REMOTE_PORT:
51829
REQUEST_METHOD:
GET
SCRIPT_NAME:
SERVER_NAME:
Allys-MacBook-Pro.local
SERVER_PORT:
8001
SERVER_PROTOCOL:
HTTP/1.1
SERVER_SOFTWARE:
Rocket 1.2.6
app_folders:
set(['/Users/allyquan/iCloud Drive/Documents/LaneClosure/web2py/applications/LCS', '/Users/allyquan/iCloud Drive/Documents/LaneClosure/web2py/applications/LCSv1', '/Users/allyquan/iCloud Drive/Documents/LaneClosure/web2py/applications/welcome', '/Users/allyquan/iCloud Drive/Documents/LaneClosure/web2py/applications/admin'])
applications_parent:
/Users/allyquan/iCloud Drive/Documents/LaneClosure/web2py
cmd_args:
cmd_options:
<Values at 0x108190e18: {'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': 'Allys-MacBook-Pro.local', 'bpython': False, 'nogui': False, 'port': 8000, 'print_errors': False, 'extcron': False, 'runcron': False, 'run_system_tests': False, 'test': None, 'folder': '/Users/allyquan/iCloud Drive/Documents/LaneClosure/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:
/Users/allyquan/iCloud Drive/Documents/LaneClosure/web2py
http_accept:
text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9
http_accept_encoding:
gzip, deflate, br
http_accept_language:
en-US,en;q=0.9,zh;q=0.8,vi;q=0.7
http_cache_control:
max-age=0
http_connection:
keep-alive
http_cookie:
session_id_lcsv1=127.0.0.1-aa69abec-6b1c-4ab9-8d58-6728cdb7b1d5
http_host:
127.0.0.1:8001
http_referer:
http://127.0.0.1:8001/LCSv1/default/search
http_sec_fetch_dest:
document
http_sec_fetch_mode:
navigate
http_sec_fetch_site:
same-origin
http_sec_fetch_user:
?1
http_upgrade_insecure_requests:
1
http_user_agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36
is_jython:
False
is_py2:
True
is_pypy:
False
is_source:
True
local_hosts:
Allys-MacBook-Pro.local
::ffff:127.0.0.1
::1
192.168.0.117
fe80::1%lo0
1.0.0.127.in-addr.arpa
fe80::103d:afde:acb4:2462%en0
127.0.0.1
path_info:
/LCSv1/default/results
query_string:
remote_addr:
127.0.0.1
remote_port:
51829
request_method:
GET
request_uri:
/LCSv1/default/results
script_name:
server_name:
Allys-MacBook-Pro.local
server_port:
8001
server_protocol:
HTTP/1.1
server_software:
Rocket 1.2.6
web2py_path:
/Users/allyquan/iCloud Drive/Documents/LaneClosure/web2py
web2py_version:
2.18.5-stable+timestamp.2019.04.08.04.22.03
wsgi.errors:
<open file '<stderr>', mode 'w' at 0x1072ab1e0>
wsgi.file_wrapper:
<class wsgiref.util.FileWrapper at 0x10811dc80>
wsgi.input:
<socket._fileobject object at 0x10e7ada50>
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 0x1072ab1e0>
wsgi_file_wrapper:
<class wsgiref.util.FileWrapper at 0x10811dc80>
wsgi_input:
<socket._fileobject object at 0x10e7ada50>
wsgi_multiprocess:
False
wsgi_multithread:
True
wsgi_run_once:
False
wsgi_url_scheme:
http
wsgi_version:
1
0
extension:
html
folder:
/Users/allyquan/iCloud Drive/Documents/LaneClosure/web2py/applications/LCSv1
function:
results
global_settings:
app_folders:
set(['/Users/allyquan/iCloud Drive/Documents/LaneClosure/web2py/applications/LCS', '/Users/allyquan/iCloud Drive/Documents/LaneClosure/web2py/applications/LCSv1', '/Users/allyquan/iCloud Drive/Documents/LaneClosure/web2py/applications/welcome', '/Users/allyquan/iCloud Drive/Documents/LaneClosure/web2py/applications/admin'])
applications_parent:
/Users/allyquan/iCloud Drive/Documents/LaneClosure/web2py
cmd_args:
cmd_options:
<Values at 0x108190e18: {'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': 'Allys-MacBook-Pro.local', 'bpython': False, 'nogui': False, 'port': 8000, 'print_errors': False, 'extcron': False, 'runcron': False, 'run_system_tests': False, 'test': None, 'folder': '/Users/allyquan/iCloud Drive/Documents/LaneClosure/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:
/Users/allyquan/iCloud Drive/Documents/LaneClosure/web2py
is_jython:
False
is_py2:
True
is_pypy:
False
is_source:
True
local_hosts:
Allys-MacBook-Pro.local
::ffff:127.0.0.1
::1
192.168.0.117
fe80::1%lo0
1.0.0.127.in-addr.arpa
fe80::103d:afde:acb4:2462%en0
127.0.0.1
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(2020, 3, 25, 13, 58, 58, 76584)
raw_args:
raw_extension:
None
url:
/LCSv1/default/results
utcnow:
datetime.datetime(2020, 3, 25, 20, 58, 58, 76594)
wsgi:
<gluon.main.LazyWSGI object at 0x10a7e3650>
' tRp60 sS'frames' p61 (lp62 (dp63 S'file' p64 S'/Users/allyquan/iCloud Drive/Documents/LaneClosure/web2py/gluon/restricted.py' p65 sS'dump' p66 (dp67 S'environment' p68 S"{'A': , 'ANY_OF': , 'ASSIGNJS': , 'B': , 'BEAUTIFY': , 'BODY': , 'BR': , 'BUTTON': , 'CAT': , 'CENTER': , ...}" p69 sS'ccode' p70 S' at 0x10a842330, file "/Use...plications/LCSv1/controllers/default.py", line 3>' p71 ssS'lnum' p72 I219 sS'lines' p73 (dp74 I214 S' if environment is None:' p75 sI215 S' environment = {}' p76 sI216 S" environment['__file__'] = layer" p77 sI217 S" environment['__name__'] = '__restricted__'" p78 sI218 S' try:' p79 sI219 S' exec(ccode, environment)' p80 sI220 S' except HTTP:' p81 sI221 S' raise' p82 sI222 S' except RestrictedError:' p83 sI223 S' # do not encapsulate (obfuscate) the original RestrictedError' p84 ssS'call' p85 S'(ccode= at 0x10a842330, file "/Use...plications/LCSv1/controllers/default.py", line 3>, environment={\'A\': , \'ANY_OF\': , \'ASSIGNJS\': , \'B\': , \'BEAUTIFY\': , \'BODY\': , \'BR\': , \'BUTTON\': , \'CAT\': , \'CENTER\': , ...}, layer=\'/Users/allyquan/iCloud Drive/Documents/LaneClosure/web2py/applications/LCSv1/controllers/default.py\', scode= at 0x10a842330, file "/Use...plications/LCSv1/controllers/default.py", line 3>)' p86 sS'func' p87 S'restricted' p88 sa(dp89 g64 S'/Users/allyquan/iCloud Drive/Documents/LaneClosure/web2py/applications/LCSv1/controllers/default.py' p90 sg66 (dp91 sg72 I219 sg73 (dp92 I208 S' return newID' p93 sI209 S' else:' p94 sI210 S" return 'T'+routeNum+'AA' # For a non-existing route" p95 sI211 S'' sI212 S'# Convert checkbox value to YES/NO' p96 sI213 S'def getCheckbox(ckBox):' p97 sI214 S' if (ckBox == "on"):' p98 sI215 S' return "YES"' p99 sI216 S' else:' p100 sI217 S' return "NO"' p101 ssg85 S'()' p102 sg87 S'' p103 sa(dp104 g64 S'/Users/allyquan/iCloud Drive/Documents/LaneClosure/web2py/gluon/globals.py' p105 sg66 (dp106 S'self' p107 S'undefined' p108 sS'f' S'' p109 ssg72 I421 sg73 (dp110 I416 S" self.flash = '' # used by the default view layout" p111 sI417 S' self.meta = Storage() # used by web2py_ajax.html' p112 sI418 S' self.menu = [] # used by the default view layout' p113 sI419 S' self.files = [] # used by web2py_ajax.html' p114 sI420 S' self._vars = None' p115 sI421 S' self._caller = lambda f: f()' p116 sI422 S' self._view_environment = None' p117 sI423 S' self._custom_commit = None' p118 sI424 S' self._custom_rollback = None' p119 sI425 S" self.generic_patterns = ['*']" p120 ssg85 S'(f=)' p121 sg87 S'' p122 sa(dp123 g64 S'/Users/allyquan/iCloud Drive/Documents/LaneClosure/web2py/applications/LCSv1/controllers/default.py' p124 sg66 (dp125 S'builtinlen' p126 S'' p127 sS'session.route' p128 S'None' p129 sS'global session' p130 S"" p131 ssg72 I60 sg73 (dp132 I64 S' hwy = db(db.closures.startdate >= session.startdate).select()' p133 sI55 S'# Show the item that was found in the search' p134 sI56 S'def results():' p135 sI57 S' if (len(session.closureid) != 0):' p136 sI58 S' hwy = db(db.closures.closureid == session.closureid).select()' p137 sI59 S' msg = "Closure ID = " + session.closureid' p138 sI60 S' elif (len(session.route) != 0):' p139 sI61 S' hwy = db(db.closures.route == session.route).select()' p140 sI62 S' msg = "route = " + session.route' p141 sI63 S' elif (len(session.startdate) == 10):' p142 ssg85 S'()' p143 sg87 S'results' p144 sasS'pyver' p145 S'Python 2.7.16: /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python (prefix: /System/Library/Frameworks/Python.framework/Versions/2.7)' p146 sS'session' p147 g59 (S's)\x04\x00\x00
chosenid:
None
closureid:
direction:
enddate:
lognum:
route:
None
startdate:
username:
RM
' tRp148 sS'etype' p149 S"" p150 sS'date' p151 S'Wed Mar 25 13:58:58 2020' p152 sS'response' p153 g59 (S's_\x1d\x00\x00
body:
<cStringIO.StringO object at 0x10a730ae8>
cookies:
session_id_lcsv1:
127.0.0.1-aa69abec-6b1c-4ab9-8d58-6728cdb7b1d5
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:
Home
False
/LCSv1/default/home
List
False
/LCSv1/default/list
Search
False
/LCSv1/default/search
Request
False
/LCSv1/default/submit
meta:
author:
Author
description:
describe your app
keywords:
keyword
models_to_run:
^\\w+\\.py$
^default/\\w+\\.py$
^default/results/\\w+\\.py$
postprocessing:
session_client:
127.0.0.1
session_cookie_compression_level:
None
session_cookie_expires:
None
session_data_name:
session_data_lcsv1
session_file:
<open file '/Users/allyquan/iCloud Drive/Documents/LaneClosure/web2py/applications/LCSv1/sessions/063/120/127.0.0.1-aa69abec-6b1c-4ab9-8d58-6728cdb7b1d5', mode 'rb+' at 0x10eac3ae0>
session_filename:
/Users/allyquan/iCloud Drive/Documents/LaneClosure/web2py/applications/LCSv1/sessions/127.0.0.1-aa69abec-6b1c-4ab9-8d58-6728cdb7b1d5
session_hash:
a2a6990f37c9222273b39ef6d2723dc1
session_id:
127.0.0.1-aa69abec-6b1c-4ab9-8d58-6728cdb7b1d5
session_id_name:
session_id_lcsv1
session_locked:
True
session_masterapp:
LCSv1
session_new:
False
session_storage_type:
file
status:
200
subtitle:
subtitle customize me!
title:
LCSv1
view:
default/results.html
' tRp154 sS'locals' p155 (dp156 ssS'traceback' p157 S'Traceback (most recent call last):\n File "/Users/allyquan/iCloud Drive/Documents/LaneClosure/web2py/gluon/restricted.py", line 219, in restricted\n exec(ccode, environment)\n File "/Users/allyquan/iCloud Drive/Documents/LaneClosure/web2py/applications/LCSv1/controllers/default.py", line 219, in \n File "/Users/allyquan/iCloud Drive/Documents/LaneClosure/web2py/gluon/globals.py", line 421, in \n self._caller = lambda f: f()\n File "/Users/allyquan/iCloud Drive/Documents/LaneClosure/web2py/applications/LCSv1/controllers/default.py", line 60, in results\n elif (len(session.route) != 0):\nTypeError: object of type \'NoneType\' has no len()\n' p158 s.