Revision 59573532 snf-cyclades-app/synnefo/plankton/backend.py
b/snf-cyclades-app/synnefo/plankton/backend.py | ||
---|---|---|
97 | 97 |
def split_url(url): |
98 | 98 |
"""Returns (accout, container, object) from a url string""" |
99 | 99 |
t = url.split('/', 4) |
100 |
assert t[0] == "pithos:", "Invalid url" |
|
100 | 101 |
assert len(t) == 5, "Invalid url" |
101 | 102 |
return t[2:5] |
102 | 103 |
|
Also available in: Unified diff