'Return a (httpserver, bind_addr) pair based on self attributes.'

def httpserver_from_self(self, httpserver=None):

    if (httpserver is None):
        httpserver = self.instance
    if (httpserver is None):
        from cherrypy import _cpwsgi_server
        httpserver = _cpwsgi_server.CPWSGIServer(self)
    if isinstance(httpserver, basestring):
        httpserver = attributes(httpserver)(self)
    return (httpserver, self.bind_addr)
