示例#1
0
 def __init__(self, host='127.0.0.1', port=8000, domain=None, logger=None, debug=False):
     if domain is None:
         if port==80:
             domain=host
         else:
             domain='%s:%d'%(host,port)
     Server.__init__(self, domain, logger, debug)
     BaseHTTPServer.__init__(self, (host,port), HTTPRequestHandler)
示例#2
0
 def __init__(self, host='127.0.0.1', port=8000, domain=None, logger=None, debug=False):
     if domain is None:
         if port==80:
             domain=host
         else:
             domain='%s:%d'%(host,port)
     Server.__init__(self, domain, logger, debug)
     BaseHTTPServer.__init__(self, (host,port), HTTPRequestHandler)
示例#3
0
 def __init__(self, host='127.0.0.1', port=8080, domain=None, logger=None, debug=False):
     if domain is None:
         if port==80:
             domain=host
         else:
             domain='%s:%d'%(host,port)
     Server.__init__(self, domain, logger, debug)
     BaseHTTPServer.__init__(self, (host,port), QxradHTTPRequestHandler)
     '''Setting all services using in this application'''
     self.setService('qxrad.application', Application())
     self.setService('qxrad.filesystem', Filesystem())
     self.setService('qxrad.project', Project())