[CherryPy] #1083: cherrypy requires ssl to startup

1 view
Skip to first unread message

CherryPy

unread,
Aug 29, 2011, 1:02:20 PM8/29/11
to cherrypy...@googlegroups.com
#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

CherryPy

unread,
Aug 30, 2011, 8:29:57 AM8/30/11
to cherrypy...@googlegroups.com
#1083: cherrypy requires ssl to startup
-----------------------------------+----------------------------------------
Reporter: kris...@ccpgames.com | Owner: fumanchu
Type: defect | Status: new
Priority: normal | Milestone: 3.2
Component: wsgiserver | Resolution:
Keywords: |
-----------------------------------+----------------------------------------
Changes (by kris...@ccpgames.com):

* milestone: => 3.2
Reply all
Reply to author
Forward
0 new messages