Esempio n. 1
0
 def decode_old_fullpath(self, old_fullpath):
     # pylint: disable=unbalanced-tuple-unpacking
     try:
         account, container, path, version = decode_old_fullpath(
             old_fullpath)
         cid = self.cid_from_name(account, container)
         content_id = self.content_id_from_name(cid, path, version)
     except ValueError:
         # We never know, let's try to decode the fullpath as if it was new
         account, container, path, version, content_id = decode_fullpath(
             old_fullpath)
         cid = self.cid_from_name(account, container)
     return account, container, cid, path, version, content_id
Esempio n. 2
0
 def decode_old_fullpath(self, old_fullpath):
     account, container, path, version = decode_old_fullpath(old_fullpath)
     cid = self.cid_from_name(account, container)
     content_id = self.content_id_from_name(cid, path, version)
     return account, container, cid, path, version, content_id
Esempio n. 3
0
 def decode_old_fullpath(self, old_fullpath):
     # pylint: disable=unbalanced-tuple-unpacking
     account, container, path, version = decode_old_fullpath(old_fullpath)
     cid = self.cid_from_name(account, container)
     content_id = self.content_id_from_name(cid, path, version)
     return account, container, cid, path, version, content_id