]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
web/directory: enable verify=true in t=deep-check
authorBrian Warner <warner@allmydata.com>
Tue, 12 Aug 2008 04:24:09 +0000 (21:24 -0700)
committerBrian Warner <warner@allmydata.com>
Tue, 12 Aug 2008 04:24:09 +0000 (21:24 -0700)
src/allmydata/web/directory.py

index 7ab7080d4be09a23dfb99173a102fd14c9639c3c..6adcd072d76099cf16638c6c38a195e44d1a20d6 100644 (file)
@@ -338,7 +338,10 @@ class DirectoryNodeHandler(RenderMixin, rend.Page, ReplaceMeMixin):
 
     def _POST_deep_check(self, req):
         # check this directory and everything reachable from it
-        d = self.node.deep_check()
+        verify = boolean_of_arg(get_arg(req, "verify", "false"))
+        #repair = boolean_of_arg(get_arg(req, "repair", "false"))
+        repair = False # make sure it works first
+        d = self.node.deep_check(verify, repair)
         d.addCallback(lambda res: DeepCheckResults(res))
         return d