# HG changeset patch
# User Martin Albrecht <malb@informatik.uni-bremen.de>
# Date 1201622680 0
# Node ID fc8f0d116862536ca397f84ed38e274e74d83ab3
# Parent 7731814c621e208ce158c8b965938bb5b099825b
c-1970 -- notebook -- gnutls should not be needed if you're running the notebook insecurely, so don't require it
diff -r 7731814c621e -r fc8f0d116862 sage/server/notebook/run_notebook.py
|
a
|
b
|
signal.signal(signal.SIGINT, my_sigint) |
| 181 | 181 | signal.signal(signal.SIGINT, my_sigint) |
| 182 | 182 | |
| 183 | 183 | ## Disable client-side certificate request for gnutls |
| 184 | | import gnutls.connection |
| 185 | | gnutls.connection.CERT_REQUEST = 0 |
| | 184 | try: |
| | 185 | import gnutls.connection |
| | 186 | gnutls.connection.CERT_REQUEST = 0 |
| | 187 | except OSError: |
| | 188 | print "Note: GNUTLS not available." |
| 186 | 189 | |
| 187 | 190 | ## Authentication framework (ported from Knooboo) |
| 188 | 191 | from twisted.web2 import log, server, channel |