Example #1
0
 def __init__(self, host, port, user, passwd,
              serviceName="cvstoys.notify", prefix=None):
     self.host = host
     self.port = port
     self.prefix = prefix
     self.listener = l = FreshCVSListener()
     l.source = self
     self.factory = f = FreshCVSConnectionFactory()
     f.source = self
     f.startGettingPerspective(user, passwd, serviceName, client=l)
     TCPClient.__init__(self, host, port, f)
Example #2
0
 def __init__(self, host, port, user, passwd, prefix=None):
     self.host = host
     self.port = port
     self.username = user
     self.password = passwd
     if prefix is not None and not prefix.endswith("/"):
         log.msg("WARNING: prefix '%s' should probably end with a slash" \
                 % prefix)
     self.prefix = prefix
     self.listener = l = FreshCVSListener()
     l.source = self
     self.factory = f = FreshCVSConnectionFactory()
     f.source = self
     self.creds = credentials.UsernamePassword(user, passwd)
     f.startLogin(self.creds, client=l)
     TCPClient.__init__(self, host, port, f)
Example #3
0
 def __init__(self,
              host,
              port,
              user,
              passwd,
              serviceName="cvstoys.notify",
              prefix=None):
     self.host = host
     self.port = port
     self.prefix = prefix
     self.listener = l = FreshCVSListener()
     l.source = self
     self.factory = f = FreshCVSConnectionFactory()
     f.source = self
     f.startGettingPerspective(user, passwd, serviceName, client=l)
     TCPClient.__init__(self, host, port, f)
Example #4
0
 def __init__(self, host, port, user, passwd, prefix=None):
     self.host = host
     self.port = port
     self.username = user
     self.password = passwd
     if prefix is not None and not prefix.endswith("/"):
         log.msg("WARNING: prefix '%s' should probably end with a slash" \
                 % prefix)
     self.prefix = prefix
     self.listener = l = FreshCVSListener()
     l.source = self
     self.factory = f = FreshCVSConnectionFactory()
     f.source = self
     self.creds = credentials.UsernamePassword(user, passwd)
     f.startLogin(self.creds, client=l)
     TCPClient.__init__(self, host, port, f)
Example #5
0
 def __init__(self, overlord, freeswitch):
     TCPClient.__init__(self, freeswitch["address"], freeswitch["port"], overlord.factory)