Remove CherryPy v2.* support
authorW. Trevor King <wking@drexel.edu>
Wed, 25 Aug 2010 13:00:05 +0000 (09:00 -0400)
committerW. Trevor King <wking@drexel.edu>
Wed, 25 Aug 2010 13:00:05 +0000 (09:00 -0400)
chemdb/server.py

index 3dcfb0a828bcd24462031a99211a20a451734776..aadc551bc506792907eecc041d5236d81fe5e1f3 100644 (file)
@@ -210,8 +210,6 @@ class ServerDaemon (Daemon):
     def run(self):
         if cherrypy.__version__.startswith('3.'):
             cherrypy.quickstart(root=self.server, config=self.app_config)
-        elif cherrypy.__version__.startswith('2.'):
-            cherrypy.server.start()
 
 #        if self.pkey_file == None or self.cert_file == None:
 #            logging.info("http://%s:%d/" % web.validip(self.ip_address))
@@ -368,19 +366,6 @@ class ServerDaemon (Daemon):
                     app_config[url] = digest_auth
             self.server = server
             self.app_config = app_config
-        elif cherrypy.__version__.startswith('2.'):
-            cherrypy.root = server
-            cherrypy.config.update({
-                    'server.environment': 'production',
-                    'server.socket_host': self.options.address,
-                    'server.socket_port': int(self.options.port),
-                    'decoding_filter.on': True,
-                    'encoding_filter.on': True,
-                    'encodinf_filter.encoding': 'utf8',
-                    'static_filter.on': True,
-                    'static_filter.dir': static_dir,
-                    })
-            cherrypy.server.start()
         else:
             raise NotImplementedError(
                 'Unsupported CherryPy version %s' % cherrypy.__version__)