From: Brian Warner Date: Thu, 30 Nov 2006 22:14:47 +0000 (-0700) Subject: start client framework X-Git-Tag: tahoe_v0.1.0-0-UNSTABLE~546 X-Git-Url: https://git.rkrishnan.org/pf/content/en/service/rgr-080307.php?a=commitdiff_plain;h=174a45e1064563513e4fa34a55a65b16b61a6287;p=tahoe-lafs%2Ftahoe-lafs.git start client framework --- diff --git a/allmydata/client.py b/allmydata/client.py new file mode 100644 index 00000000..cadbd289 --- /dev/null +++ b/allmydata/client.py @@ -0,0 +1,9 @@ + +from foolscap import Tub +from twisted.application import service + +class Client(service.MultiService): + def __init__(self, queen_pburl): + service.MultiService.__init__(self) + self.queen_pburl = queen_pburl + self.tub = Tub() diff --git a/client.tac b/client.tac new file mode 100644 index 00000000..eda14e66 --- /dev/null +++ b/client.tac @@ -0,0 +1,10 @@ +# -*- python -*- + +from allmydata import client +from twisted.application import service + +queen_pburl = "" +c = client.Client(queen_pburl) + +application = service.Application("allmydata_client") +c.setServiceParent(application)