Ejemplo n.º 1
0
    def __init__(self, name, addr = ('', 25), request = SMTPRequestHandler):
        Thread.__init__(self,  name)
        BaseSMTPServer.__init__(self,  name, addr, request)




        sys.stdout.write(" '" + name + "' using port " + `addr` + " ")
Ejemplo n.º 2
0
 def __init__(self, gc, name, port = 8000):
     Thread.__init__(self, gc, name)
     
     self._httpd = BaseSSLHTTPServer(('', port), SSLHTTPHandler)
     self._httpd.gc = gc
     self._httpd.name = name
     self.gc = gc
     sys.stdout.write(" '" + name + "' using port " + `port` + " ")
Ejemplo n.º 3
0
 def __init__(self,  name):
     Thread.__init__(self, name)
     Pyro.core.initServer(banner=0)
     self.daemon = Pyro.core.Daemon()
     
     locator = Pyro.naming.NameServerLocator()
     ns = locator.getNS()
     
     self.daemon.useNameServer(ns)
Ejemplo n.º 4
0
    def __init__(self, gc, name, port = 8000, dynapp = False):
        Thread.__init__(self, gc, name)
        BaseHTTPServer.__init__(self, gc, name, ('', port), HTTPHandler)
        self.dynapp = dynapp

        #self._httpd = BaseHTTPServer(gc, name, ('', port), HTTPHandler)
        #self._httpd.dynapp = dynapp #ugly hack

        self.gc = gc
        sys.stdout.write(" '" + name + "' using port " + `port` + " ")
Ejemplo n.º 5
0
    def __init__(self, name, addr = ('', 8000), dynapp = False):
        Thread.__init__(self, name)
        BaseHTTPServer.__init__(self, name, addr, HTTPHandler)
        self.dynapp = dynapp

        #self._httpd = BaseHTTPServer(gc, name, ('', port), HTTPHandler)
        #self._httpd.dynapp = dynapp #ugly hack


        sys.stdout.write(" '" + name + "' using port " + `addr` + " ")
Ejemplo n.º 6
0
    def __init__(self, name):
        Thread.__init__(self, name)

        self.classes = {}
        self.count_down = {}
        self.options = {}
Ejemplo n.º 7
0
 def __init__(self, gc, name, playlist):
     Thread.__init__(self, gc, name)
     self.db = gc['db']
     self.cont = threading.Event()
     self.cont.set()
     self.playlist = playlist