aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorElrond <elrond+mediagoblin.org@samba-tng.org>2011-08-08 20:11:28 +0200
committerElrond <elrond+mediagoblin.org@samba-tng.org>2011-08-08 20:11:28 +0200
commit255f02c48623533f6e781d9d1eade12d18ee0745 (patch)
tree804c15998b37cd72f21214e8320aeef9545e78c5
parentff94b4ce388a577a930ee98c4f82d961585ac6c3 (diff)
downloadmediagoblin-255f02c48623533f6e781d9d1eade12d18ee0745.tar.lz
mediagoblin-255f02c48623533f6e781d9d1eade12d18ee0745.tar.xz
mediagoblin-255f02c48623533f6e781d9d1eade12d18ee0745.zip
MountStorage: Add docs.
-rw-r--r--mediagoblin/storage.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/mediagoblin/storage.py b/mediagoblin/storage.py
index 25598c82..bbf1c034 100644
--- a/mediagoblin/storage.py
+++ b/mediagoblin/storage.py
@@ -287,6 +287,21 @@ class CloudFilesStorage(StorageInterface):
class MountStorage(StorageInterface):
+ """
+ Experimental "Mount" virtual Storage Interface
+
+ This isn't an interface to some real storage, instead
+ it's a redirecting interface, that redirects requests
+ to other "StorageInterface"s.
+ For example, requests for ["store1", "a"] to first
+ storage with the path ["a"], etc.
+
+ To set this up, you currently need to call the mount()
+ method with the target path and a backend, that shall
+ be available under that target path.
+ You have to mount things in a sensible order,
+ especially you can't mount ["a", "b"] before ["a"].
+ """
def __init__(self, **kwargs):
self.mounttab = {}