interfaces.py: allow add/renew/cancel-lease to return Any, so that 1.3.1 clients...
authorBrian Warner <warner@lothar.com>
Wed, 18 Feb 2009 20:29:03 +0000 (13:29 -0700)
committerBrian Warner <warner@lothar.com>
Wed, 18 Feb 2009 20:29:03 +0000 (13:29 -0700)
src/allmydata/interfaces.py

index d166f75aef148f1642de6fae5b9003be03e10318..c8211c48ca3345119ad4817f2e8e21247244867e 100644 (file)
@@ -127,7 +127,7 @@ class RIStorageServer(RemoteInterface):
         tahoe-1.3.0 and earlier, IndexError was raised if there was no
         bucket)
         """
-        return None
+        return Any() # returns None now, but future versions might change
 
     def renew_lease(storage_index=StorageIndex, renew_secret=LeaseRenewSecret):
         """
@@ -141,7 +141,7 @@ class RIStorageServer(RemoteInterface):
         can be renewed or cancelled. For immutable shares, IndexError
         (without the note) will be raised.
         """
-        return None
+        return Any()
 
     def cancel_lease(storage_index=StorageIndex,
                      cancel_secret=LeaseCancelSecret):
@@ -156,7 +156,7 @@ class RIStorageServer(RemoteInterface):
         can be renewed or cancelled. For immutable shares, IndexError
         (without the note) will be raised.
         """
-        return None
+        return Any()
 
     def get_buckets(storage_index=StorageIndex):
         return DictOf(int, RIBucketReader, maxKeys=MAX_BUCKETS)