]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
move my_private_dir.cap into private/
authorBrian Warner <warner@allmydata.com>
Tue, 18 Dec 2007 03:57:40 +0000 (20:57 -0700)
committerBrian Warner <warner@allmydata.com>
Tue, 18 Dec 2007 03:57:40 +0000 (20:57 -0700)
src/allmydata/client.py
src/allmydata/test/test_system.py

index 2074772149504ba04f036148b8017beddadcef8c..d250e1a141badfbbb1119ebdbe75f4c2c5d1e2ff 100644 (file)
@@ -120,7 +120,11 @@ class Client(node.Node, Referenceable, testutil.PollMixin):
         read-write mutable directory URI, then I create a new mutable
         directory and write its URI into that file.
         """
-        privdirfile = os.path.join(self.basedir, self.MY_PRIVATE_DIR_FILE)
+        # TODO: change this to use Node.get_or_create_private_config(). That
+        # will probably require passing a validation function in, or
+        # something.
+        privdirfile = os.path.join(self.basedir, "private",
+                                   self.MY_PRIVATE_DIR_FILE)
         if os.path.exists(privdirfile):
             try:
                 theuri = open(privdirfile, "r").read().strip()
index ea928108950fb08d983d2b45855d0b370868cff1..9f200daed7112f10dcd61d3c9cfdf240241ea3a1 100644 (file)
@@ -70,7 +70,8 @@ class SystemTest(testutil.SignalMixin, unittest.TestCase):
             if i == 0:
                 open(os.path.join(basedir, "webport"), "w").write("tcp:0:interface=127.0.0.1")
             if self.createprivdir:
-                open(os.path.join(basedir, "my_private_dir.cap"), "w")
+                fileutil.make_dirs(os.path.join(basedir, "private"))
+                open(os.path.join(basedir, "private", "my_private_dir.cap"), "w")
             open(os.path.join(basedir, "introducer.furl"), "w").write(self.introducer_furl)
             c = self.add_service(client.Client(basedir=basedir))
             self.clients.append(c)