(dp1 S'output' p2 S" global name 'formvars' is not defined" p3 sS'layer' p4 S'/home/jdalbey/Dropbox/web2py/applications/HLD/controllers/default.py' p5 sS'code' p6 S' at 0x7f1930384c30, file "/home/jdalbey/Dropbox/web2py/applications/HLD/controllers/default.py", line 1>' 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'"global name \'formvars\' is not defined"' 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"'Name not found globally.'" p37 sS'__getitem__' p38 S"" p39 sS'__setstate__' p40 S'' p41 sS'__getattribute__' p42 S"" p43 sS'args' p44 S'("global name \'formvars\' is not defined",)' 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"global name 'formvars' is not defined" p57 sS'request' p58 cgluon.html XML_unpickle p59 (S's\xb0d\x00\x00
ajax:
False
application:
HLD
args:
cid:
None
client:
127.0.0.1
controller:
default
cookies:
session_id_admin:
127.0.0.1-2d0c1c6c-dcb3-4443-b1b3-fa032509dc6a
comment:
domain:
expires:
httponly:
max-age:
path:
samesite:
secure:
version:
session_id_hld:
127.0.0.1-29e35efb-101b-45ed-9698-5613242067bc
comment:
domain:
expires:
httponly:
max-age:
path:
samesite:
secure:
version:
session_id_welcome:
127.0.0.1-ac132756-0bb0-401d-a583-5ff90dff4a86
comment:
domain:
expires:
httponly:
max-age:
path:
samesite:
secure:
version:
env:
CONTENT_LENGTH:
3010
CONTENT_TYPE:
multipart/form-data; boundary=---------------------------1832818685528351932112747024
HTTP_ACCEPT:
text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
HTTP_ACCEPT_ENCODING:
gzip, deflate
HTTP_ACCEPT_LANGUAGE:
en-US,en;q=0.5
HTTP_CONNECTION:
keep-alive
HTTP_CONTENT_LENGTH:
3010
HTTP_CONTENT_TYPE:
multipart/form-data; boundary=---------------------------1832818685528351932112747024
HTTP_COOKIE:
session_id_welcome=127.0.0.1-ac132756-0bb0-401d-a583-5ff90dff4a86; session_id_admin=127.0.0.1-2d0c1c6c-dcb3-4443-b1b3-fa032509dc6a; session_id_hld=127.0.0.1-29e35efb-101b-45ed-9698-5613242067bc
HTTP_HOST:
127.0.0.1:8000
HTTP_ORIGIN:
http://127.0.0.1:8000
HTTP_REFERER:
http://127.0.0.1:8000/HLD/default/submit
HTTP_UPGRADE_INSECURE_REQUESTS:
1
HTTP_USER_AGENT:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:73.0) Gecko/20100101 Firefox/73.0
PATH_INFO:
/HLD/default/submit
QUERY_STRING:
REMOTE_ADDR:
127.0.0.1
REMOTE_PORT:
49776
REQUEST_METHOD:
POST
SCRIPT_NAME:
SERVER_NAME:
Omen
SERVER_PORT:
8000
SERVER_PROTOCOL:
HTTP/1.1
SERVER_SOFTWARE:
Rocket 1.2.6
app_folders:
set(['/home/jdalbey/Dropbox/web2py/applications/welcome', '/home/jdalbey/Dropbox/web2py/applications/admin', '/home/jdalbey/Dropbox/web2py/applications/HLD'])
applications_parent:
/home/jdalbey/Dropbox/web2py
cmd_args:
cmd_options:
<Values at 0x7f193b7ed9b0: {'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': 'Omen', 'bpython': False, 'nogui': False, 'port': 8000, 'print_errors': False, 'extcron': False, 'runcron': False, 'run_system_tests': False, 'test': None, 'folder': '/home/jdalbey/Dropbox/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_length:
3010
content_type:
multipart/form-data; boundary=---------------------------1832818685528351932112747024
db_sessions:
set([])
debugging:
True
gluon_parent:
/home/jdalbey/Dropbox/web2py
http_accept:
text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
http_accept_encoding:
gzip, deflate
http_accept_language:
en-US,en;q=0.5
http_connection:
keep-alive
http_content_length:
3010
http_content_type:
multipart/form-data; boundary=---------------------------1832818685528351932112747024
http_cookie:
session_id_welcome=127.0.0.1-ac132756-0bb0-401d-a583-5ff90dff4a86; session_id_admin=127.0.0.1-2d0c1c6c-dcb3-4443-b1b3-fa032509dc6a; session_id_hld=127.0.0.1-29e35efb-101b-45ed-9698-5613242067bc
http_host:
127.0.0.1:8000
http_origin:
http://127.0.0.1:8000
http_referer:
http://127.0.0.1:8000/HLD/default/submit
http_upgrade_insecure_requests:
1
http_user_agent:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:73.0) Gecko/20100101 Firefox/73.0
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
Omen
path_info:
/HLD/default/submit
query_string:
remote_addr:
127.0.0.1
remote_port:
49776
request_method:
POST
request_uri:
/HLD/default/submit
script_name:
server_name:
Omen
server_port:
8000
server_protocol:
HTTP/1.1
server_software:
Rocket 1.2.6
web2py_path:
/home/jdalbey/Dropbox/web2py
web2py_version:
2.18.5-stable+timestamp.2019.04.08.04.22.03
wsgi.errors:
<open file '<stderr>', mode 'w' at 0x7f1942869270>
wsgi.file_wrapper:
<class wsgiref.util.FileWrapper at 0x7f193b823980>
wsgi.input:
<socket._fileobject object at 0x7f190a68c150>
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 0x7f1942869270>
wsgi_file_wrapper:
<class wsgiref.util.FileWrapper at 0x7f193b823980>
wsgi_input:
<socket._fileobject object at 0x7f190a68c150>
wsgi_multiprocess:
False
wsgi_multithread:
True
wsgi_run_once:
False
wsgi_url_scheme:
http
wsgi_version:
1
0
extension:
html
folder:
/home/jdalbey/Dropbox/web2py/applications/HLD
function:
submit
global_settings:
app_folders:
set(['/home/jdalbey/Dropbox/web2py/applications/welcome', '/home/jdalbey/Dropbox/web2py/applications/admin', '/home/jdalbey/Dropbox/web2py/applications/HLD'])
applications_parent:
/home/jdalbey/Dropbox/web2py
cmd_args:
cmd_options:
<Values at 0x7f193b7ed9b0: {'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': 'Omen', 'bpython': False, 'nogui': False, 'port': 8000, 'print_errors': False, 'extcron': False, 'runcron': False, 'run_system_tests': False, 'test': None, 'folder': '/home/jdalbey/Dropbox/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/Dropbox/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
Omen
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:
POST
now:
datetime.datetime(2020, 3, 15, 17, 43, 43, 778620)
raw_args:
raw_extension:
None
url:
/HLD/default/submit
utcnow:
datetime.datetime(2020, 3, 16, 0, 43, 43, 778632)
wsgi:
<gluon.main.LazyWSGI object at 0x7f190a6286d0>
' tRp60 sS'frames' p61 (lp62 (dp63 S'file' p64 S'/home/jdalbey/Dropbox/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 0x7f1930384c30, file "/...applications/HLD/controllers/default.py", line 1>' 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 0x7f1930384c30, file "/...applications/HLD/controllers/default.py", line 1>, environment={\'A\': , \'ANY_OF\': , \'ASSIGNJS\': , \'B\': , \'BEAUTIFY\': , \'BODY\': , \'BR\': , \'BUTTON\': , \'CAT\': , \'CENTER\': , ...}, layer=\'/home/jdalbey/Dropbox/web2py/applications/HLD/controllers/default.py\', scode= at 0x7f1930384c30, file "/...applications/HLD/controllers/default.py", line 1>)' p86 sS'func' p87 S'restricted' p88 sa(dp89 g64 S'/home/jdalbey/Dropbox/web2py/applications/HLD/controllers/default.py' p90 sg66 (dp91 sg72 I195 sg73 (dp92 I192 S' else:' p93 sI193 S" return 'T'+routeNum+'AA' # For a non-existing route" p94 sI184 S' # Retrieve any existing closures on this route' p95 sI185 S" item = db(db.closures.closureid.startswith('T'+routeNum)).select().last() # Might need to sort these" p96 sI186 S' if (item != None):' p97 sI187 S' currID = item.closureid' p98 sI188 S' lastchar = currID[-1:] # Get last character of ID' p99 sI189 S' lastchar = chr(ord(lastchar) + 1) # increment it to next character (need bounds check)' p100 sI190 S' newID = currID[:-1] + lastchar # append char to ID' p101 sI191 S' return newID' p102 ssg85 S'()' p103 sg87 S'' p104 sa(dp105 g64 S'/home/jdalbey/Dropbox/web2py/gluon/globals.py' p106 sg66 (dp107 S'self' p108 S'undefined' p109 sS'f' S'' p110 ssg72 I421 sg73 (dp111 I416 S" self.flash = '' # used by the default view layout" p112 sI417 S' self.meta = Storage() # used by web2py_ajax.html' p113 sI418 S' self.menu = [] # used by the default view layout' p114 sI419 S' self.files = [] # used by web2py_ajax.html' p115 sI420 S' self._vars = None' p116 sI421 S' self._caller = lambda f: f()' p117 sI422 S' self._view_environment = None' p118 sI423 S' self._custom_commit = None' p119 sI424 S' self._custom_rollback = None' p120 sI425 S" self.generic_patterns = ['*']" p121 ssg85 S'(f=)' p122 sg87 S'' p123 sa(dp124 g64 S'/home/jdalbey/Dropbox/web2py/applications/HLD/controllers/default.py' p125 sg66 (dp126 S'form.vars.enddate' p127 S"'20001010'" p128 sS'form.vars' p129 S"" p130 sS'supervisor' p131 g109 sS'form.vars.cozeep' p132 S"'on'" p133 sS'facility' p134 g109 sS'form.vars.endcounty' p135 S"'ORA'" p136 sS'formvars' p137 g109 sS'form.vars.endtime' p138 S"'01'" p139 sS'startdate' p140 g109 sS'form.vars.starttimemin' p141 S"'15'" p142 sS'db.closures' p143 S'' p144 sS'closuretype' p145 g109 sS'form.vars.endtimemin' p146 S"'15'" p147 sS'form.vars.facility' p148 S"'Concrete Pour'" p149 sS'lognum' p150 g109 sS'newID' p151 S"'T22BC'" p152 sS'fieldrep' p153 g109 sS'closureid' p154 g109 sS'form.vars.starttime' p155 S"'00'" p156 sS'form.vars.fieldrep' p157 S"'Baker'" p158 sS'direction' p159 g109 sS'form.vars.detour' p160 S"'on'" p161 sS'tmpcozeep' p162 g109 sS'starttime' p163 g109 sS'form' p164 S'' p165 sS'form.vars.direction' p166 S"'S'" p167 sS'endlocation' p168 g109 sS'form.vars.startdate' p169 S"'20001010'" p170 sS'form.vars.route' p171 S"'22'" p172 sS'form.vars.worktype' p173 S"'Connector'" p174 sS'enddate' p175 g109 sS'form.vars.closuretype' p176 S"'Lane'" p177 sS'endtime' p178 g109 sS'estdelay' p179 g109 sS'tmpdetour' p180 g109 sS'endcounty' p181 g109 sS'form.vars.endlocation' p182 S"'VALLEY VIEW'" p183 sS'route' p184 g109 sS'startcounty' p185 g109 sS'startlocation' p186 g109 sS'db.closures.insert' p187 S'>' p188 sS'newrec' p189 g109 sS'form.vars.estdelay' p190 S"'5'" p191 sS'global db' p192 S'' p193 sS'worktype' p194 g109 sS'form.vars.startlocation' p195 S"'MAGNOLIA'" p196 sS'form.vars.startcounty' p197 S"'ORA'" p198 ssg72 I177 sg73 (dp199 I172 S" TABLE(TR(TD('Meeting Place/CHP Contact'),TD('Reason for Closure'),TD('Additional Remarks / Detour '))," p200 sI173 S" TR(TD(INPUT(_name='meeting')),TD(INPUT(_name='reason')),TD(INPUT(_name='remarks',_size='40'))) ), BR()," p201 sI174 S" INPUT(_type='submit',_value='Submit Closure'))" p202 sI175 S' if form.process().accepted:' p203 sI176 S' newID = calcNextClosure(form.vars.route)' p204 sI177 S" newrec = db.closures.insert(closureid=newID, lognum='1', route=form.vars.route, direction=form.vars.direction, facility=form.vars.facility, startcounty=form.vars.startcounty, endcounty=form.vars.endcounty, startlocation=form.vars.startlocation, endlocation=form.vars.endlocation, startdate=form.vars.startdate, enddate=form.vars.enddate, starttime=form.vars.starttime+form.vars.starttimemin, endtime=form.vars.endtime+form.vars.endtimemin, closuretype=form.vars.closuretype, worktype=form.vars.worktype, estdelay=form.vars.estdelay, tmpcozeep=form.vars.cozeep, tmpdetour=form.vars.detour, supervisor=formvars.supervisor, fieldrep=form.vars.fieldrep, )" p205 sI178 S" session.flash = 'New lane closure added: ' + newID" p206 sI179 S" redirect(URL('index.html'))" p207 sI180 S' return dict(form=form)' p208 sI181 S'' ssg85 S'()' p209 sg87 S'submit' p210 sasS'pyver' p211 S'Python 2.7.17: /usr/bin/python (prefix: /usr)' p212 sS'session' p213 g59 (S's\xbf\x04\x00\x00
closureid:
direction:
enddate:
flash:
None
last_orderby:
None
last_query:
db.closures.id>1
lognum:
route:
5
startdate:
' tRp214 sS'etype' p215 S"" p216 sS'date' p217 S'Sun Mar 15 17:43:43 2020' p218 sS'response' p219 g59 (S's\x1c\x1d\x00\x00
body:
<cStringIO.StringO object at 0x7f190a628b70>
cookies:
session_id_hld:
127.0.0.1-29e35efb-101b-45ed-9698-5613242067bc
comment:
domain:
expires:
httponly:
max-age:
path:
/
samesite:
secure:
version:
delimiters:
{{
}}
files:
flash:
Success!
form_label_separator:
:
formstyle:
table3cols
generic_patterns:
*
headers:
X-Powered-By:
web2py
menu:
Home
False
/HLD/default/index
List
False
/HLD/default/list
Search
False
/HLD/default/search
Request
False
/HLD/default/submit
meta:
author:
Author
description:
describe your app
keywords:
keyword
models_to_run:
^\\w+\\.py$
^default/\\w+\\.py$
^default/submit/\\w+\\.py$
postprocessing:
session_client:
127.0.0.1
session_cookie_compression_level:
None
session_cookie_expires:
None
session_data_name:
session_data_hld
session_file:
<open file '/home/jdalbey/Dropbox/web2py/applications/HLD/sessions/1db/0eb/127.0.0.1-29e35efb-101b-45ed-9698-5613242067bc', mode 'rb+' at 0x7f190a5ce270>
session_filename:
/home/jdalbey/Dropbox/web2py/applications/HLD/sessions/127.0.0.1-29e35efb-101b-45ed-9698-5613242067bc
session_hash:
0eb24065ee764e69b2ba217e89597c84
session_id:
127.0.0.1-29e35efb-101b-45ed-9698-5613242067bc
session_id_name:
session_id_hld
session_locked:
True
session_masterapp:
HLD
session_new:
False
session_storage_type:
file
status:
200
subtitle:
subtitle customize me!
title:
HLD
view:
default/submit.html
' tRp220 sS'locals' p221 (dp222 S'closuretypes' p223 S"['', 'Lane', 'Full', 'Moving', 'One-Way Traffic', 'Alternating Lanes', 'Traffic Break']" p224 sS'streets' p225 S"['', 'E OF COAL', 'ORANGETHORPE', 'MAGNOLIA', 'GILBERT', 'VALLEY VIEW', 'BROOKHURST', 'HOLDER', 'KNOTT']" p226 sS'form' p227 S'' p228 sS'hwys' p229 S"['', '1', '5', '22', '55', '57', '73', '74', '91', '133', '142', '241', '261', '405', '605']" p230 sS'facilities' p231 S"['', 'AC Paving', 'Accident Investigation', 'Attenuator Repair', 'Blasting', 'Bridge Inspection', 'Bridge Work', 'Brush Fire', 'Chip Seal Operation', 'Concrete Pour', 'Core Drilling', 'Crack Seal Operation', 'Curb/Gutter/Sidewalk Work', 'Drainage Cleaning', 'Drainage Inspection', 'Drainage Work', 'Electrical Work', 'Emergency Work', 'Falsework Installation', 'Falsework Removal', ...]" p232 sS'supervisors' p233 S"['', 'Able', 'Baker', 'Charly']" p234 sS'newID' p235 S"'T22BC'" p236 sS'worktypes' p237 S"['', 'Connector', 'Conventional_Hwy', 'Mainline', 'Off Ramp', 'On Ramp', 'Rest Area', 'Surface Street']" p238 sS'hournames' p239 S"['', '00', '01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12', '13', '14', '15', '16', '17', '18', ...]" p240 sssS'traceback' p241 S'Traceback (most recent call last):\n File "/home/jdalbey/Dropbox/web2py/gluon/restricted.py", line 219, in restricted\n exec(ccode, environment)\n File "/home/jdalbey/Dropbox/web2py/applications/HLD/controllers/default.py", line 195, in \n File "/home/jdalbey/Dropbox/web2py/gluon/globals.py", line 421, in \n self._caller = lambda f: f()\n File "/home/jdalbey/Dropbox/web2py/applications/HLD/controllers/default.py", line 177, in submit\n newrec = db.closures.insert(closureid=newID, lognum=\'1\', route=form.vars.route, direction=form.vars.direction, facility=form.vars.facility, startcounty=form.vars.startcounty, endcounty=form.vars.endcounty, startlocation=form.vars.startlocation, endlocation=form.vars.endlocation, startdate=form.vars.startdate, enddate=form.vars.enddate, starttime=form.vars.starttime+form.vars.starttimemin, endtime=form.vars.endtime+form.vars.endtimemin, closuretype=form.vars.closuretype, worktype=form.vars.worktype, estdelay=form.vars.estdelay, tmpcozeep=form.vars.cozeep, tmpdetour=form.vars.detour, supervisor=formvars.supervisor, fieldrep=form.vars.fieldrep, )\nNameError: global name \'formvars\' is not defined\n' p242 s.