diff options
author | Christopher Allan Webber <cwebber@dustycloud.org> | 2012-07-06 11:25:42 -0500 |
---|---|---|
committer | Christopher Allan Webber <cwebber@dustycloud.org> | 2012-07-14 12:55:13 -0500 |
commit | 00eda826cb3cb694c4e9f11e799ec5e4e57323ff (patch) | |
tree | 7fc028be9d65b445999ceafeeea6ed235e037330 /mediagoblin/tools | |
parent | e8d4e5821447da9ceec7dfb60f4b95cad1861f7a (diff) | |
download | mediagoblin-00eda826cb3cb694c4e9f11e799ec5e4e57323ff.tar.lz mediagoblin-00eda826cb3cb694c4e9f11e799ec5e4e57323ff.tar.xz mediagoblin-00eda826cb3cb694c4e9f11e799ec5e4e57323ff.zip |
Kill MultiRemoteStaticDirect... nobody was really using it anyway
Since we're adding the new "domain" staticdirect system we should
clean this up.
Diffstat (limited to 'mediagoblin/tools')
-rw-r--r-- | mediagoblin/tools/staticdirect.py | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/mediagoblin/tools/staticdirect.py b/mediagoblin/tools/staticdirect.py index 7477de68..4143b453 100644 --- a/mediagoblin/tools/staticdirect.py +++ b/mediagoblin/tools/staticdirect.py @@ -56,20 +56,3 @@ class RemoteStaticDirect(StaticDirect): def get(self, filepath): return '%s/%s' % ( self.remotepath, filepath.lstrip('/')) - - -class MultiRemoteStaticDirect(StaticDirect): - """ - For whene separate sections of the static data is served under - separate urls. - """ - def __init__(self, remotepaths): - StaticDirect.__init__(self) - self.remotepaths = remotepaths - - def get(self, filepath): - section, rest = filepath.strip('/').split('/', 1) - - return '%s/%s' % ( - self.remotepaths[section].rstrip('/'), - rest.lstrip('/')) |