From 174a45e1064563513e4fa34a55a65b16b61a6287 Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Thu, 30 Nov 2006 15:14:47 -0700 Subject: [PATCH] start client framework --- allmydata/client.py | 9 +++++++++ client.tac | 10 ++++++++++ 2 files changed, 19 insertions(+) create mode 100644 allmydata/client.py create mode 100644 client.tac 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) -- 2.45.2