(dp1 S'output' p2 S" Expected bytes" p3 sS'layer' p4 S'/home/jdalbey/Dropbox/web2py/applications/HLD/views/default/submit.html' p5 sS'code' p6 S'response.write(\'\\n \\n \\n \\n \\n \\n \\n \\n \\n \', escape=False)\nresponse.write(response.title or request.application)\nresponse.write(\'\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \', escape=False)\nresponse.write(\'\\n\', escape=False)\nresponse.files.insert(0,URL(\'static\',\'js/jquery.js\'))\nresponse.files.insert(1,URL(\'static\',\'css/calendar.css\'))\nresponse.files.insert(2,URL(\'static\',\'js/calendar.js\'))\nresponse.files.insert(3,URL(\'static\',\'js/web2py.js\'))\nresponse.include_meta()\nresponse.include_files()\nresponse.write(\'\\n\', escape=False)\nresponse.write(\' \\n \', escape=False)\nresponse.write(\'\\n \\n \\n
\', escape=False)\nresponse.write(response.flash or \'\')\nresponse.write(\'
\\n \\n\\n \\n \\n\\n \\n \', escape=False)\nresponse.write(\'\\n \', escape=False)\nresponse.write(\'\\n \\n \\n
\\n \', escape=False)\nresponse.write(\'\\n\\n

Request Emergency Closure

\\n\', escape=False)\nresponse.write(form)\nresponse.write(\'\\n\', escape=False)\nresponse.write(\'\\n \', escape=False)\nresponse.write(response.toolbar() if response.show_toolbar else \'\')\nresponse.write(\'\\n
\\n\\n \', escape=False)\nresponse.write(\' \\n \\n \', escape=False)\nresponse.write(\'\\n \\n \\n \\n \', escape=False)\nresponse.write(\'\\n \', escape=False)\nif response.google_analytics_id:\n response.write(\'\\n \\n \\n \\n ", escape=False)\n pass\nresponse.write(\'\\n \\n\\n\', escape=False)' 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"'Expected bytes'" 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"('Expected bytes',)" 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'Expected bytes' p57 sS'request' p58 cgluon.html XML_unpickle p59 (S'sZ`\x00\x00
ajax:
False
application:
HLD
args:
cid:
None
client:
127.0.0.1
controller:
default
cookies:
session_id_admin:
127.0.0.1-c11373d9-668f-4e96-9f6c-c487c8e8ec1f
comment:
domain:
expires:
httponly:
max-age:
path:
samesite:
secure:
version:
session_id_hld:
127.0.0.1-807202e9-f02a-4e39-b3d8-3986c93f2386
comment:
domain:
expires:
httponly:
max-age:
path:
samesite:
secure:
version:
session_id_welcome:
127.0.0.1-ae10098d-e89f-41a4-9ac6-45a1559b7522
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_CACHE_CONTROL:
max-age=0
HTTP_CONNECTION:
keep-alive
HTTP_COOKIE:
session_id_welcome=127.0.0.1-ae10098d-e89f-41a4-9ac6-45a1559b7522; session_id_admin=127.0.0.1-c11373d9-668f-4e96-9f6c-c487c8e8ec1f; session_id_hld=127.0.0.1-807202e9-f02a-4e39-b3d8-3986c93f2386
HTTP_DNT:
1
HTTP_HOST:
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:
60656
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/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 0x7fdef218d9b0: {'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/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_cache_control:
max-age=0
http_connection:
keep-alive
http_cookie:
session_id_welcome=127.0.0.1-ae10098d-e89f-41a4-9ac6-45a1559b7522; session_id_admin=127.0.0.1-c11373d9-668f-4e96-9f6c-c487c8e8ec1f; session_id_hld=127.0.0.1-807202e9-f02a-4e39-b3d8-3986c93f2386
http_dnt:
1
http_host:
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
Laptop-asus-X510UNR
path_info:
/HLD/default/submit
query_string:
remote_addr:
127.0.0.1
remote_port:
60656
request_method:
GET
request_uri:
/HLD/default/submit
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/Dropbox/web2py
web2py_version:
2.18.5-stable+timestamp.2019.04.08.04.22.03
wsgi.errors:
<open file '<stderr>', mode 'w' at 0x7fdef9209270>
wsgi.file_wrapper:
<class wsgiref.util.FileWrapper at 0x7fdef21c7910>
wsgi.input:
<socket._fileobject object at 0x7fdeb39373d0>
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 0x7fdef9209270>
wsgi_file_wrapper:
<class wsgiref.util.FileWrapper at 0x7fdef21c7910>
wsgi_input:
<socket._fileobject object at 0x7fdeb39373d0>
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 0x7fdef218d9b0: {'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/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
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(2020, 3, 16, 10, 55, 47, 591484)
raw_args:
raw_extension:
None
url:
/HLD/default/submit
utcnow:
datetime.datetime(2020, 3, 16, 17, 55, 47, 591504)
wsgi:
<gluon.main.LazyWSGI object at 0x7fdeb3938650>
' 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 0x7fdeb3ab3030, file "/...lications/HLD/views/default/submit.html", 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 0x7fdeb3ab3030, file "/...lications/HLD/views/default/submit.html", line 1>, environment={\'A\': , \'ANY_OF\': , \'ASSIGNJS\': , \'B\': , \'BEAUTIFY\': , \'BODY\': , \'BR\': , \'BUTTON\': , \'CAT\': , \'CENTER\': , ...}, layer=\'/home/jdalbey/Dropbox/web2py/applications/HLD/views/default/submit.html\', scode=r"response.write(\'\\n\\n
\\n
\\n
\\n \\n
\\n
\\n
\\n
\\n
\\n \', escape=False)' p99 sI135 S'response.write(\'\\n \\n \\n

Request Emergency Closure

\\n\', escape=False)' p109 sI125 S'response.write(form)' p110 sI126 S"response.write('\\n', escape=False)" p111 sI127 S"response.write('\\n ', escape=False)" p112 ssg85 S'()' p113 sg87 S'' p114 sa(dp115 g64 S'/home/jdalbey/Dropbox/web2py/gluon/globals.py' p116 sg66 (dp117 S'self.body.write' p118 S'' p119 sS'global xmlescape' p120 S'' p121 sS'self' p122 S", 'view': 'default/submit.html'}>" p123 sS'self.body' p124 S'' p125 sS'global to_native' p126 S'' p127 sS'data' p128 S'' p129 ssg72 I434 sg73 (dp130 I429 S'' sI430 S' def write(self, data, escape=True):' p131 sI431 S' if not escape:' p132 sI432 S' self.body.write(str(data))' p133 sI433 S' else:' p134 sI434 S' self.body.write(to_native(xmlescape(data)))' p135 sI435 S'' sI436 S' def render(self, *a, **b):' p136 sI437 S' from gluon.compileapp import run_view_in' p137 sI438 S' if len(a) > 2:' p138 ssg85 S"(self=, 'view': 'default/submit.html'}>, data=, escape=True)" p139 sg87 S'write' p140 sa(dp141 g64 S'/home/jdalbey/Dropbox/web2py/gluon/html.py' p142 sg66 (dp143 S'data' p144 S'' p145 sS'data.xml' p146 S'>' p147 sS'global to_bytes' p148 S'' p149 ssg72 I149 sg73 (dp150 I144 S' quote: optional (default False)' p151 sI145 S' """' p152 sI146 S'' sI147 S' # first try the xml function' p153 sI148 S" if hasattr(data, 'xml') and callable(data.xml):" p154 sI149 S' return to_bytes(data.xml())' p155 sI150 S'' sI151 S' if not(isinstance(data, (text_type, bytes))):' p156 sI152 S' # i.e., integers' p157 sI153 S' data = str(data)' p158 ssg85 S'(data=, quote=True)' p159 sg87 S'xmlescape' p160 sa(dp161 g64 S'/home/jdalbey/Dropbox/web2py/gluon/html.py' p162 sg66 (dp163 S'global DIV' p164 S"" p165 sS'DIV.xml' p166 S'' p167 sS'newform' p168 S'' p169 ssg72 I2208 sg73 (dp170 I2208 S' return DIV.xml(newform)' p171 sI2209 S'' sI2210 S' def validate(self, **kwargs):' p172 sI2211 S' """' p173 sI2212 S' This function validates the form,' p174 sI2203 S' def xml(self):' p175 sI2204 S' newform = FORM(*self.components, **self.attributes)' p176 sI2205 S' hidden_fields = self.hidden_fields()' p177 sI2206 S' if hidden_fields.components:' p178 sI2207 S' newform.append(hidden_fields)' p179 ssg85 S'(self=)' p180 sg87 S'xml' p181 sa(dp182 g64 S'/home/jdalbey/Dropbox/web2py/gluon/html.py' p183 sg66 (dp184 S'fa' p185 S'undefined' p186 sS'self' p187 S'' p188 sS'co' p189 g186 sS'self._xml' p190 S'>' p191 ssg72 I984 sg73 (dp192 I979 S' def xml(self):' p193 sI980 S' """' p194 sI981 S' generates the xml for this component.' p195 sI982 S' """' p196 sI983 S'' sI984 S' (fa, co) = self._xml()' p197 sI985 S'' sI986 S' if not self.tag:' p198 sI987 S' return co' p199 sI988 S'' ssg85 S'(self=)' p200 sg87 g181 sa(dp201 g64 S'/home/jdalbey/Dropbox/web2py/gluon/html.py' p202 sg66 (dp203 S'component' p204 S'' p205 sS'self' p206 S'' p207 sS'global xmlescape' p208 S'' p209 sS'co' p210 g186 sS'self.components' p211 S"[, , , ,    , , ,    , , , , , , , 'Date Range:', , , ,    , , ...]" p212 ssg72 I976 sg73 (dp213 I971 S" fa = b''" p214 sI972 S' for name, value in attr:' p215 sI973 S' fa += (b\' %s="%s"\') % (to_bytes(name), xmlescape(value, True))' p216 sI974 S'' sI975 S' # get the xml for the inner components' p217 sI976 S" co = b''.join([xmlescape(component) for component in self.components])" p218 sI977 S' return (fa, co)' p219 sI978 S'' sI979 S' def xml(self):' p220 sI980 S' """' p221 ssg85 S'(self=)' p222 sg87 S'_xml' p223 sa(dp224 g64 S'/home/jdalbey/Dropbox/web2py/gluon/html.py' p225 sg66 (dp226 S'data' p227 S'' p228 sS'data.xml' p229 S'>' p230 sS'global to_bytes' p231 S'' p232 ssg72 I149 sg73 (dp233 I144 S' quote: optional (default False)' p234 sI145 S' """' p235 sI146 S'' sI147 S' # first try the xml function' p236 sI148 S" if hasattr(data, 'xml') and callable(data.xml):" p237 sI149 S' return to_bytes(data.xml())' p238 sI150 S'' sI151 S' if not(isinstance(data, (text_type, bytes))):' p239 sI152 S' # i.e., integers' p240 sI153 S' data = str(data)' p241 ssg85 S'(data=, quote=True)' p242 sg87 g160 sa(dp243 g64 S'/home/jdalbey/Dropbox/web2py/gluon/html.py' p244 sg66 (dp245 S'self' p246 S'' p247 sS'self.components' p248 S'[hideme {visibility: hidden}]' p249 ssg72 I1475 sg73 (dp250 I1472 S' fa = to_bytes(fa)' p251 sI1473 S' # no escaping of subcomponents' p252 sI1474 S" co = b'\\n'.join([to_bytes(component) for component in" p253 sI1475 S' self.components])' p254 sI1476 S' if co:' p255 sI1477 S' # ' p258 sI1470 S' def xml(self):' p259 sI1471 S' (fa, co) = self._xml()' p260 ssg85 S'(self=)' p261 sg87 g181 sa(dp262 g64 S'/home/jdalbey/Dropbox/web2py/gluon/packages/dal/pydal/_compat.py' p263 sg66 (dp264 S'builtinTypeError' p265 S"" p266 ssg72 I71 sg73 (dp267 I66 S' return None' p268 sI67 S' if isinstance(obj, (bytes, bytearray, buffer)):' p269 sI68 S' return bytes(obj)' p270 sI69 S' if isinstance(obj, unicode):' p271 sI70 S' return obj.encode(charset, errors)' p272 sI71 S" raise TypeError('Expected bytes')" p273 sI72 S'' sI73 S" def to_native(obj, charset='utf8', errors='strict'):" p274 sI74 S' if obj is None or isinstance(obj, str):' p275 sI75 S' return obj' p276 ssg85 S"(obj=hideme {visibility: hidden}, charset='utf-8', errors='strict')" p277 sg87 S'to_bytes' p278 sasS'pyver' p279 S'Python 2.7.17: /usr/bin/python (prefix: /usr)' p280 sS'session' p281 g59 (S's8\x01\x00\x00
last_orderby:
None
last_query:
db.streets.id>0
' tRp282 sS'etype' p283 S"" p284 sS'date' p285 S'Mon Mar 16 10:55:48 2020' p286 sS'response' p287 g59 (S's\xee\x1d\x00\x00
body:
<cStringIO.StringO object at 0x7fdee8148db0>
cookies:
session_id_hld:
127.0.0.1-807202e9-f02a-4e39-b3d8-3986c93f2386
comment:
domain:
expires:
httponly:
max-age:
path:
/
samesite:
secure:
version:
delimiters:
{{
}}
files:
/HLD/static/js/jquery.js
/HLD/static/css/calendar.css
/HLD/static/js/calendar.js
/HLD/static/js/web2py.js
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/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/0f9/09a/127.0.0.1-807202e9-f02a-4e39-b3d8-3986c93f2386', mode 'rb+' at 0x7fdec8554660>
session_filename:
/home/jdalbey/Dropbox/web2py/applications/HLD/sessions/127.0.0.1-807202e9-f02a-4e39-b3d8-3986c93f2386
session_hash:
3f7496c469d029ad2a27dc36147cfb3b
session_id:
127.0.0.1-807202e9-f02a-4e39-b3d8-3986c93f2386
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
' tRp288 sS'locals' p289 (dp290 S'errors' p291 S"'strict'" p292 sS'obj' p293 S'hideme {visibility: hidden}' p294 sS'charset' p295 S"'utf-8'" p296 sssS'traceback' p297 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/views/default/submit.html", line 125, in \n File "/home/jdalbey/Dropbox/web2py/gluon/globals.py", line 434, in write\n self.body.write(to_native(xmlescape(data)))\n File "/home/jdalbey/Dropbox/web2py/gluon/html.py", line 149, in xmlescape\n return to_bytes(data.xml())\n File "/home/jdalbey/Dropbox/web2py/gluon/html.py", line 2208, in xml\n return DIV.xml(newform)\n File "/home/jdalbey/Dropbox/web2py/gluon/html.py", line 984, in xml\n (fa, co) = self._xml()\n File "/home/jdalbey/Dropbox/web2py/gluon/html.py", line 976, in _xml\n co = b\'\'.join([xmlescape(component) for component in self.components])\n File "/home/jdalbey/Dropbox/web2py/gluon/html.py", line 149, in xmlescape\n return to_bytes(data.xml())\n File "/home/jdalbey/Dropbox/web2py/gluon/html.py", line 1475, in xml\n self.components])\n File "/home/jdalbey/Dropbox/web2py/gluon/packages/dal/pydal/_compat.py", line 71, in to_bytes\n raise TypeError(\'Expected bytes\')\nTypeError: Expected bytes\n' p298 s.