]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
change name of the query "allow_local_access()?" to "local_access_is_allowed()"
authorZooko O'Whielacronx <zooko@zooko.com>
Wed, 22 Aug 2007 17:32:00 +0000 (10:32 -0700)
committerZooko O'Whielacronx <zooko@zooko.com>
Wed, 22 Aug 2007 17:32:00 +0000 (10:32 -0700)
So as to avoid confusing it with the setter method
"allow_local_access(allowed=True)".

src/allmydata/webish.py

index 7f030e81f22ed0bac3a9852568cc0365800d04d9..703f9a1093cfd0fd34f41741ce33a234aecf1fbe 100644 (file)
@@ -21,7 +21,7 @@ def getxmlfile(name):
 class IClient(Interface):
     pass
 class ILocalAccess(Interface):
-    def allow_local_access():
+    def local_access_is_allowed():
         pass
 
 
@@ -920,7 +920,7 @@ class VDrive(rend.Page):
             if localdir != os.path.abspath(localdir):
                 return NeedAbsolutePathError(), ()
         if localfile or localdir:
-            if not ILocalAccess(ctx).allow_local_access():
+            if not ILocalAccess(ctx).local_access_is_allowed():
                 return LocalAccessDisabledError(), ()
             if req.getHost().host != LOCALHOST:
                 return NeedLocalhostError(), ()
@@ -1132,7 +1132,7 @@ class LocalAccess:
     implements(ILocalAccess)
     def __init__(self):
         self.local_access = False
-    def allow_local_access(self):
+    def local_access_is_allowed(self):
         return self.local_access
 
 class WebishServer(service.MultiService):