(dp1 S'output' p2 S" local variable 'closedItems' referenced before assignment" p3 sS'layer' p4 S'/home/jdalbey/Dropbox/web2py/applications/HLD/controllers/default.py' p5 sS'code' p6 S' at 0x7fd12a60eb30, 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'"local variable \'closedItems\' referenced before assignment"' 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"'Local name referenced but not bound to a value.'" p37 sS'__getitem__' p38 S"" p39 sS'__setstate__' p40 S'' p41 sS'__getattribute__' p42 S"" p43 sS'args' p44 S'("local variable \'closedItems\' referenced before assignment",)' 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"local variable 'closedItems' referenced before assignment" p57 sS'request' p58 cgluon.html XML_unpickle p59 (S's\xf4]\x00\x00
ajax:
False
application:
HLD
args:
cid:
None
client:
127.0.0.1
controller:
default
cookies:
session_id_admin:
127.0.0.1-62eed038-a476-4133-8767-a158d97879a6
comment:
domain:
expires:
httponly:
max-age:
path:
samesite:
secure:
version:
session_id_hld:
127.0.0.1-68e98aa6-6e51-4926-b1d5-f48899728977
comment:
domain:
expires:
httponly:
max-age:
path:
samesite:
secure:
version:
session_id_welcome:
127.0.0.1-d7b06514-3b51-4402-b589-1c43afc801d8
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,*/*;q=0.8
HTTP_ACCEPT_ENCODING:
gzip, deflate
HTTP_ACCEPT_LANGUAGE:
en-US,en;q=0.5
HTTP_CONNECTION:
keep-alive
HTTP_COOKIE:
session_id_admin=127.0.0.1-62eed038-a476-4133-8767-a158d97879a6; session_id_welcome=127.0.0.1-d7b06514-3b51-4402-b589-1c43afc801d8; session_id_hld=127.0.0.1-68e98aa6-6e51-4926-b1d5-f48899728977
HTTP_HOST:
127.0.0.1:8000
HTTP_REFERER:
http://127.0.0.1:8000/HLD/default/results.html
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/statuslist
QUERY_STRING:
REMOTE_ADDR:
127.0.0.1
REMOTE_PORT:
45412
REQUEST_METHOD:
GET
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 0x7fd1641af9b0: {'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
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_cookie:
session_id_admin=127.0.0.1-62eed038-a476-4133-8767-a158d97879a6; session_id_welcome=127.0.0.1-d7b06514-3b51-4402-b589-1c43afc801d8; session_id_hld=127.0.0.1-68e98aa6-6e51-4926-b1d5-f48899728977
http_host:
127.0.0.1:8000
http_referer:
http://127.0.0.1:8000/HLD/default/results.html
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/statuslist
query_string:
remote_addr:
127.0.0.1
remote_port:
45412
request_method:
GET
request_uri:
/HLD/default/statuslist
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 0x7fd16b22b270>
wsgi.file_wrapper:
<class wsgiref.util.FileWrapper at 0x7fd1641e5980>
wsgi.input:
<socket._fileobject object at 0x7fd12a60e1d0>
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 0x7fd16b22b270>
wsgi_file_wrapper:
<class wsgiref.util.FileWrapper at 0x7fd1641e5980>
wsgi_input:
<socket._fileobject object at 0x7fd12a60e1d0>
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:
statuslist
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 0x7fd1641af9b0: {'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:
GET
now:
datetime.datetime(2020, 3, 11, 15, 39, 32, 628102)
raw_args:
raw_extension:
None
url:
/HLD/default/statuslist
utcnow:
datetime.datetime(2020, 3, 11, 22, 39, 32, 628114)
wsgi:
<gluon.main.LazyWSGI object at 0x7fd148039990>
' 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 0x7fd12a60eb30, 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 0x7fd12a60eb30, 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 0x7fd12a60eb30, 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 I91 sg73 (dp92 I80 S' return dict(msg=msg)' p93 sI81 S'' sI82 S'# Create a new record' p94 sI83 S'def submit():' p95 sI84 S" # Don't name this function 'request' because it creates a name conflict with http.request" p96 sI85 S' form = SQLFORM(db.closures)' p97 sI86 S' if form.process().accepted:' p98 sI87 S" response.flash = 'your submission is accepted'" p99 sI88 S" redirect(URL('list'))" p100 sI89 S' return dict(form=form)' p101 ssg85 S'()' p102 sg87 S'' p103 sa(dp104 g64 S'/home/jdalbey/Dropbox/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'/home/jdalbey/Dropbox/web2py/applications/HLD/controllers/default.py' p124 sg66 (dp125 S'db.closures.closureid' p126 S'' p127 sS'item' p128 S"'T5AA'" p129 sS').select' p130 g108 sS'db.closures' p131 S'' p132 sS'closedItems' p133 g108 sS'global db' p134 S'' p135 ssg72 I57 sg73 (dp136 I52 S' msg += session.cb1' p137 sI53 S' msg += "!"' p138 sI54 S' else:' p139 sI55 S' for item in session.cb1:' p140 sI56 S' msg += item + " : "' p141 sI57 S' closedItems += db(db.closures.closureid == item).select()' p142 sI58 S'' sI59 S' form = FORM(BR(),' p143 sI60 S' INPUT(_type=\'submit\',_value="submit status form"),' p144 sI61 S" TABLE(THEAD(TR(TH(''), TH('ID'),TH('Route'),TH('Startdate')))," p145 ssg85 S'()' p146 sg87 S'statuslist' p147 sasS'pyver' p148 S'Python 2.7.17: /usr/bin/python (prefix: /usr)' p149 sS'session' p150 g59 (S's\xd0\x04\x00\x00
cb1:
T5AA
T405AA
closureid:
fields:
btn1:
btn2:
Working...
cb1:
T5AA
T405AA
flash:
None
startdate:
' tRp151 sS'etype' p152 S"" p153 sS'date' p154 S'Wed Mar 11 15:39:32 2020' p155 sS'response' p156 g59 (S's\x1c\x1d\x00\x00
body:
<cStringIO.StringO object at 0x7fd12a8c2470>
cookies:
session_id_hld:
127.0.0.1-68e98aa6-6e51-4926-b1d5-f48899728977
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
/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/statuslist/\\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/1ce/0f9/127.0.0.1-68e98aa6-6e51-4926-b1d5-f48899728977', mode 'rb+' at 0x7fd12a70e420>
session_filename:
/home/jdalbey/Dropbox/web2py/applications/HLD/sessions/127.0.0.1-68e98aa6-6e51-4926-b1d5-f48899728977
session_hash:
987d6e385ed38c313b63c10908d354ed
session_id:
127.0.0.1-68e98aa6-6e51-4926-b1d5-f48899728977
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/statuslist.html
' tRp157 sS'locals' p158 (dp159 S'msg' p160 S'' p161 sS'item' p162 S"'T5AA'" p163 sssS'traceback' p164 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 91, 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 57, in statuslist\n closedItems += db(db.closures.closureid == item).select()\nUnboundLocalError: local variable \'closedItems\' referenced before assignment\n' p165 s.