Flask,bootstrap 3 app with modal;逃生钥匙导致管道破裂

时间:2016-09-30 04:47:13

标签: twitter-bootstrap-3 flask bootstrap-modal flask-bootstrap

该应用程序基于flask和bootstrap 3.我有一个带有选项的模态(data-backdrop =“static”,data-keyboard =“false”),以防止用户点击或使用转义时关闭它键。点击被忽略,但是转义键导致烧瓶应用程序崩溃,并带有指示管道损坏的回溯。

我相信HTML是正确的。我不确定为什么忽略bootstrap模态选项以及为什么烧瓶应用程序崩溃。

HTML:

<div class="modal fade" role="dialog" id="working-modal"
    data-backdrop="static" data-keyboard="false">
    <div class="modal-dialog modal-sm" role="document">
        <div class="modal-content">
            <div class="modal-body">
                <h4 class="modal-title text-center">Working</h4>
            </div>
        </div>
    </div>
</div>

日志文件:

File "/home/zinnia/.virtualenvs/px/local/lib/python2.7/site-packages/werkzeug/serving.py", line 499, in serve_forever
  HTTPServer.serve_forever(self)
File "/usr/lib/python2.7/SocketServer.py", line 233, in serve_forever
  self._handle_request_noblock()
File "/usr/lib/python2.7/SocketServer.py", line 292, in _handle_request_noblock
  self.handle_error(request, client_address)
File "/usr/lib/python2.7/SocketServer.py", line 290, in _handle_request_noblock
  self.process_request(request, client_address)
File "/usr/lib/python2.7/SocketServer.py", line 318, in process_request
  self.finish_request(request, client_address)
File "/usr/lib/python2.7/SocketServer.py", line 331, in finish_request
  self.RequestHandlerClass(request, client_address, self)
File "/usr/lib/python2.7/SocketServer.py", line 654, in __init__
  self.finish()
File "/usr/lib/python2.7/SocketServer.py", line 713, in finish
  self.wfile.close()
File "/usr/lib/python2.7/socket.py", line 283, in close
  self.flush()
File "/usr/lib/python2.7/socket.py", line 307, in flush
  self._sock.sendall(view[write_offset:write_offset+buffer_size])
socket.error: [Errno 32] Broken pipe

0 个答案:

没有答案