#1083: cherrypy requires ssl to startup
-----------------------------------+----------------------------------------
Reporter:
kris...@ccpgames.com | Owner: fumanchu
Type: defect | Status: new
Priority: normal | Milestone:
Component: wsgiserver | Keywords:
-----------------------------------+----------------------------------------
On upgrading from 3.2.0.rc1 to 3.2.0, I found that the _cpcompat file
imports HTTPSConnection from httplib (python 2.7).
This obviously fails if ssl isn't present, which may be the case in
embedded scenarios. Also, this goes against checks elsewhere that detect
the presence of ssl (e.g. wsgiserver.ssl_builtin
Can be fixed by conditionally importing these components, e.g. I currently
have this change:
#CCP Change, make it work without ssl support
try:
from httplib import HTTPSConnection
except ImportError:
pass
--
Ticket URL: <
http://www.cherrypy.org/ticket/1083>
CherryPy <
http://www.cherrypy.org>
CherryPy - a pythonic, object-oriented HTTP framework