From: Brian Warner Date: Fri, 1 Dec 2006 00:13:40 +0000 (-0700) Subject: remove that queen_host stuff X-Git-Tag: tahoe_v0.1.0-0-UNSTABLE~536 X-Git-Url: https://git.rkrishnan.org/components/com_hotproperty/frontends/index.php?a=commitdiff_plain;h=cd947bce0221c28066697e7088740ad0822b08d5;p=tahoe-lafs%2Ftahoe-lafs.git remove that queen_host stuff --- diff --git a/allmydata/client.py b/allmydata/client.py index 3a3b3882..3199f192 100644 --- a/allmydata/client.py +++ b/allmydata/client.py @@ -15,9 +15,8 @@ class Storage(service.MultiService, Referenceable): class Client(service.MultiService): CERTFILE = "client.pem" - def __init__(self, queen_host, queen_pburl): + def __init__(self, queen_pburl): service.MultiService.__init__(self) - self.queen_host = queen_host self.queen_pburl = queen_pburl if os.path.exists(self.CERTFILE): self.tub = Tub(certData=open(self.CERTFILE, "rb").read()) @@ -41,7 +40,7 @@ class Client(service.MultiService): def startService(self): # note: this class can only be started and stopped once. service.MultiService.startService(self) - d = get_local_ip_for(self.queen_host) + d = get_local_ip_for() d.addCallback(self._setup_services) if self.queen_pburl: self.connector = self.tub.connectTo(self.queen_pburl, diff --git a/allmydata/test/test_client.py b/allmydata/test/test_client.py index 1c1c662d..d80eb308 100644 --- a/allmydata/test/test_client.py +++ b/allmydata/test/test_client.py @@ -5,7 +5,7 @@ from allmydata import client class Basic(unittest.TestCase): def testLoadable(self): - c = client.Client("yumyum", "") + c = client.Client("") c.startService() return c.stopService() diff --git a/client.tac b/client.tac index 7d987783..a847dc98 100644 --- a/client.tac +++ b/client.tac @@ -3,9 +3,8 @@ from allmydata import client from twisted.application import service -queen_host = "yumyum" queen_pburl = "pb://jekyv6ghn7zinppk7wcvfmk7o4gw76hb@192.168.1.101:42552/roster" -c = client.Client(queen_host, queen_pburl) +c = client.Client(queen_pburl) application = service.Application("allmydata_client") c.setServiceParent(application)